Go to documentation repository
Previous page Next page
Axxon PSIM allows sending text messages, images, and geolocation to the Telegram chat on any event from any object registered in the objects tree. After configuration, the message sending is initiated by a macro or the Axxon PSIM script.
Before you start configuring the message sending from Axxon PSIM to Telegram, you must create a bot and the group chat with this bot in the messenger. You can use the pre-created and configured @Axxon PSIMNotificationsBot. For the distribution package and the user guide for Telegram messenger, see the telegram.org official developer website.
To configure the message sending to Telegram, do the following:
In the Bot ID field (3), enter the Telegram bot identification number.
Note
The identification number is provided when you create a bot.
@Axxon PSIMNotificationsBot bot identifier is: 474299886:AAGFKHcC8ARX9ziXgTlvKnwNhxnwlDhmD3M
In the Chat ID field (4), enter the chat identifier.
Note
To find out the chat identifier, you can add the @RawDataBot bot to the chat. When you add it, the bot sends a message to the chat containing the result of executing the getUpdates function. Find ChatId in that message. Then you can remove the @RawDataBot bot from the chat.
Configuring the message sending to Telegram is complete.
Macro to send the text message:
Macro to send media files:
Macro to send geolocation:
See also examples of commands in TELEGRAM Telegram bot.