Hi,
I need to send a message via telegram API and HTTP Request action, I try to configure my HostMonitor v11.74 like this:
---
Host: https://api.telegram.org
Port: 443
Request:
POST https://api.telegram.org/botxxxxx/sendMessage HTTP/1.1
Host: api.telegram.org
Content-Type: application/json
{"chat_id": "-XXXXXXXX",
"text": "TEST KO"}
----
but it doesn't work and I can't update my application to the new one (v11.98/99beta) yet.
Have I miss something?
Thanks
HTTP Request & Telegram
New Telegram action (version 11.99) works fine.
I think you missed empty line in request (after header), also you may add charset, e.g.
Regards
Alex
I think you missed empty line in request (after header), also you may add charset, e.g.
Code: Select all
POST https://api.telegram.org/botxxxxx/sendMessage HTTP/1.1
Host: api.telegram.org
Content-Type: application/json; charset=UTF-8
{"chat_id": "-XXXXXXXX", "text": "TEST KO"}
Alex