Telegram Message
Exchanges messages or files with users through a Telegram bot. Bots are registered in Settings > Telegram Bot; see Appendix B for obtaining the bot token and the Chat ID.
Telegram Bot
Select the Telegram bot to use.
Commands
- Send Message (default): Sends a message to the recipient.
- Send File: Sends a file to the recipient.
- Receive Message: Receives a message sent to the bot.
Fields
Chat ID
Enter the Chat ID of the recipient (a user, group, or channel). A Chat ID is a number such as 123456789. Displayed only when Command is Send Message or Send File.
Message to Send
Enter the message to send. Displayed only when Command is Send Message.
File to Send, File Caption
Select the file to send from the files uploaded to the project and, if required, enter a caption shown with the file. The caption may be left empty. Displayed only when Command is Send File.
Output variables
- Receive Complete: A Digital variable that becomes true when a new message is received and false otherwise.
- Received Message: A Text variable for the received message.
Both are displayed only when Command is Receive Message.