Telegram messenger notifications
When an object changes its state to one of the selected ones, the system can notify users via Telegram messenger.
Setup of Telegram notifications with macOS app
To setup Telegram notifications a bot for sending notifications must be created:
-
Find the contact BotFather in Telegram contacts list.
-
Send to it the message /newbot.
-
Enter a name of the bot (the name can be changed later).
-
Enter a username of the bot (the username cannot be changed later).
-
Copy the bot token. For example,
210979209:AAFfT2mt3oW4EK1gYqE_d3OjAJSIRLSrALo
. -
Send the message /setprivacy to BotFather.
-
Select the created bot by its username.
-
Select the option Disable.
If it is necessary to use existing bot or restore its token:
-
Find the contact BotFather in Telegram contacts list.
-
Send to it the message /mybots.
-
Select the bot.
-
Select the option API Token.
-
Copy the bot token. For example,
210979209:AAFfT2mt3oW4EK1gYqE_d3OjAJSIRLSrALo
.
Setting up channel, chat or group
Private channel (recommended)
-
Create a new channel in the Telegram app.
-
Open channel settings and add the bot to the list
Administrators
. -
Send a message to the channel.
-
Follow the link
https://api.telegram.org/bot<bot_token>/getUpdates
in any web browser, inserting the bot token without spaces and<>
symbols. -
Find the part with the words ID and chat, for example,
…"channel_post":{"message_id":4,"chat":{"id":-1001156346945,"title":"SAYMON","type":"channel"},"date…
.-
Here
-1001156346945
is the channel ID.
-
Chat
-
Send any message to the bot.
-
Follow the link
https://api.telegram.org/bot<bot_token>/getUpdates
in any web browser, inserting your bot token without spaces and<>
symbols. -
Find the part with the words ID and chat, for example,
…":"K"},"chat":{"id":121399918,"first_ …
.-
Here `121399918 `is the chat ID.
-
Group
-
Add the bot to the group.
-
Send any message to the bot in the group, starting it with the symbol
@
. -
Follow the link
https://api.telegram.org/bot<bot_token>/getUpdates
in any web browser, inserting your bot token without spaces and<>
symbols. -
Find the part with the words ID and chat, for example,
… ":"K"},"chat":{"id":-209194473,"first_ …
.-
Here
-209194473
is the group ID.
-
In Telegram notification settings enter the bot token and channel/chat/group ID in the corresponding fields.
To learn more about bots, refer to the Telegram website.