Need to integrate a Telegram chat bot?
How to set up notifications via Telegram? In this article, we offer a small instruction on how to integrate Oki-Toki with a chat bot in the Telegram messenger.
This article is related to Oki-Toki tool for IT department.
Bot creation
- Create a bot in telegram via @botfather (Write @botfather in Telegram contacts);
- Then add the created bot to the chat/group;
- Get the ID of the group in which the created bot is located. To do this, follow the link indicating your bot token, https://api.telegram.org/botYourBotToken/getUpdates and send any message to the previously created group.
Telegram chat bot integration
- Create a new integration in the “External Resources” section;
- To send a message via Telegram bot, use the following URL: https://api.telegram.org/botYourBotToken/sendMessage ;
- To send a message to a specific Telegram group, you need to specify the group ID in the “General request parameters” field in the form: chat_id=group ID.
Event setup
- Create a new event in the Integrations section;
- Specify the previously created integration in the event;
- Next, configure under what conditions the event will be triggered, for example, upon successful connection with the client ;
- Also, in the request parameters, specify the data that you need to receive in the chat from the bot, for example, the id of the call (Example request, {{session_id}}).
The event log
Use the ” Event Log ” report to view events and the result of their processing.
In conclusion, the integration of the Telegram chat bot with Oki-Toki is available for any company and does not take much time to launch. With the help of this instruction, you can create your own bot and configure it to receive notifications about important events in Oki-Toki.
Maxim Skomarokha