Details
-
Paid Support
-
Resolution: Not A Bug
-
Minor
-
None
-
None
-
None
Description
hi, i will try to setup telegram bot with proxy but is not work.
can you share how to get a telegram bot with a proxy running?.
./test_alert.php -c 8
Observium CE 19.8.10000
Test Alert Notification
o Notifying [telegram] tes alert bot: {"recipient":"-352362127","bot_hash":"1016604075:AAFnxj3PJq7UGJ657qZCHCO1sLJToQbw5ZY","disable_notification":"false"} [FALSE]
thanks,
Sorry for delay.
Notification to Telegram send out over common API with an https request.
If you try send notifications from closed network and want to use proxy, set this config variables:
$config['http_proxy'] = "yourproxy:80"; // Proxy for HTTP/HTTPS requests (e.g. for geocoding)
$config['proxy_user'] = ''; // Proxy username (basic auth)
$config['proxy_password'] = ''; // Proxy password
$config['proxy_fulluri'] = TRUE; // Proxy Full URI. Default TRUE, because mostly required by Squid.