[Feature Request] Add Telegram as Services Option

This section covers the Meteobridge PRO, PRO2, NANO SD, Raspberry Pi and VM platforms exclusively

Moderator: Mattk

Post Reply
User avatar
lightmaster
Junior Boarder
Junior Boarder
Posts: 37
Joined: Fri Oct 19, 2018 1:03 am

[Feature Request] Add Telegram as Services Option

Post by lightmaster »

Would it be possible to add Telegram as a predefined Service? It would essentially be a shortcut for creating a HTTP request to

Code: Select all

https://api.telegram.org/bot<TOKEN>/sendMessage?chat_id=<CHAT_ID>&text=<MESSAGE>
On the Service Settings page, it would need a text box for adding your Telegram Bot's Token and the Chat ID that you want to send messages to. On the Events Page, instead of the URL text box from the HTTP Request Service, it would need a multi-line text box, and the message entered there would be encoded to URL format (ie, space becomes `%20` and newline becomes `%0A`).

Decent instructions for creating a Telegram Bot and finding the chat ID can be found at https://www.shellhacks.com/telegram-api ... ation-bot/
User avatar
admin
Platinum Boarder
Platinum Boarder
Posts: 7854
Joined: Mon Oct 01, 2007 10:51 pm

Re: [Feature Request] Add Telegram as Services Option

Post by admin »

Thanks for providing the idea and the link. I will have a look at it the next days.
Post Reply