Go to documentation repository
Page History
...
To configure notification sending in Telegram bot, do the following:
- Configure the conditions to start a macro (see Configuring start conditions).
Select the "General: Execute web-query" action.
Select the authentication method: Basic or Digest (1). By default, the Basic authentication method is selected.
- Select the query type (2). Four types are supported: POST, GET, PUT, DELETE. By default, the POST query type is selected.
- Select the server protocol: HTTP or HTTPS (3). For the correct notifications sending, select the HTTPS protocol.
- Enter the IP address of the server (4). The address of the Telegram server is api.telegram.org.
- Enter the port of the server (5). The port of the Telegram server is 443.
Enter the path of the query (6). The path of the query should look like this: /bot<BOTToken>/sendMessage?chat_id=<СhatID>&&text=<Text>, where <BOTToken> is an ID of the bot in Telegram;
Info title Note The ID is provided when you create the bot
<СhatID> is the ID of the chat;
Info title Note To learn the ID of the chat, add the @RawDataBot bot to the chat. After adding, the bot will send a message to the chat that will contain the result of the execution of the getUpdates function. Find ChatId in the message. Then remove the @RawDataBot bot from the chat.
<Text> is a notification text. You can enter the set of US-ASCII characters (Latin characters and digits) in the notification text. For the notification text to display correctly with other characters and punctuation marks, you need to encode them. The encoding is described in the RFC 3986 standard and called URL-encoding, URLencoded, or percent-encoding. For example, a space character is encoded as %20.
...
