![](https://secure.gravatar.com/avatar/43344096ff5c3cc97e6f0321fac5d557.jpg?s=120&d=mm&r=g)
Sorry, forgot to mention I ran -d -d on the request.
DEBUG: Send: .
DEBUG: Recv: 250 2.0.0 OK 1459224715 v9sm39002373pfi.50 - gsmtp DEBUG: Send: QUIT
DEBUG: Recv: 221 2.0.0 closing connection v9sm39002373pfi.50 - gsmtp o Notifying [telegram] Telegram Notifier: {"recipient":"RECIP","bot_hash":"AUTHTOKEN"}
REQUEST[https://api.telegram.org/botAUTHTOKEN/sendMessage] REQUEST STATUS[400 Bad Request] REQUEST RUNTIME[1.059s] RESPONSE[
]
$http_response_header - /opt/observium/includes/alerts.inc.php:1287
/opt/observium/includes/common.inc.php:2877 ========================================================= array( [0] => string(24) "HTTP/1.1 400 Bad Request" [1] => string(19) "Server: nginx/1.6.2" [2] => string(35) "Date: Tue, 29 Mar 2016 04:11:56 GMT" [3] => string(30) "Content-Type: application/json" [4] => string(18) "Content-Length: 82" [5] => string(17) "Connection: close" )
$opts - /opt/observium/includes/alerts.inc.php:1287
/opt/observium/includes/common.inc.php:2878 ================================================= array( [http] => array( [method] => string(4) "POST" [content] => string(304) "chat_id=didyouexpectthat&text=ALERT+%3A+There+is+a+switch+down%2C+possibly+preventing+traffic+from+passing+accurately.%0A%0ADevice+name+%3A+ m5300.threefifteen.info %0ADevice+Uptime+%3A+Down+21m+32s%0A%0AMore+informations+%3A+https%3A%2F% 2Fobservium.threefifteen.info%2Fdevice%2Fdevice%3D1%2Ftab%3Dalert%2F" [timeout] => string(2) "15" [header] => string(37) "User-Agent: Observium/0.16.3.7711\r\n" ) )
On Mon, Mar 28, 2016 at 9:09 PM, Cody Cook observium@codycook.us wrote:
Hi, Noticed an alert checker for Telegram bots. Just recently got into Telegram. Is there any information on this? I setup my username (both with and without @) and put in the token from BotFather in the config and used test_alert.php -a 9 and it says it sends an alert. Do I need something to customize my bot to make it send messages?
Thanks