Telegram notifications

In order to send notifications for different actions from the request, please open the "Dispatcher" menu and create a new rule.

Depending on what actions you want to receive notifications for, you need to select the mandatory and additional conditions.

  • Example 1. Sending a personal message from a bot
  • Example 2. Sending a notification to a Telegram group
     

In our example, the notification will be sent each time a new request is received in the system. As soon as the rule is created, please choose "Send webhook" action and fill in information as on the screenshot:

 

Example 1: Sending personal message from bot

 

In the URL field you must insert the link with the bot's token, through which the sending will be performed. The link should look like this: https://api.telegram.org/bot/sendMessage

*where - unique authentication token of bot.

 

In the content you need to specify the template that will be sent when the rule triggers. The "chat_id" field must contain your unique Telegram account id. You can find out the id, for example, by contacting the Telegram bot @myidbot:

 

An example of the content:

{
"parse_mode": "html",
"chat_id": "********",
"text": "link for request: {link_staff}"
}

where * is the id of user (agent), to whom the notification of request will be sent.

 

Example 2. Sending notifications to Telegram groups:

The rule is made similarly to example 1. The only thing that will be changed is "chat_id" parameter (you will have to use the group id), which can be found out as follows:

  • add Telegram bot @myidbot to the desired group and type the command /getgroupid@myidbot - after which it will display the id of the current group:


An example of webhook content will look almost the same:

{

"parse_mode": "html",

"chat_id":"********",

"text": "link for request: {link_staff}"

}

Please note! In order for the bot to send notifications, end user must necessarily initiate correspondence with it first!