Force pfsense Telegram notification via Shell Command
- 
Is there a way to Force pfsense Telegram notification via Shell Command. As a test for example
echo "test" | telegram notification?I currently have mail and telegram setup under pfsense notifications and they work for system info/errors
 - 
Take a look, at the manual (your own pfSense) : /etc/inc/notices.inc : the last 5 or 6 lines.
Or the source, here.So, make a file, call it 'testfile.php' that contains this :
<?php require_once("notices.inc"); require_once("util.inc"); $msg='Hi !'; notify_all_remote($msg); ?>and then : show time :
php -q testfile.phpand check your Telegram account ^^
 - 
@Gertjan thank you!
 
Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.