Kaspersky Container Security
Adding Telegram integrations
Adding Telegram integrations
To add a Telegram integration:
- Do one of the following:
- Under Administration → Integrations → Notifications, in the Telegram integration section, click the Add new button.
- In the Administration → Integrations → Notifications section, select Telegram integrations. In the window that opens, click the Add button located above the table.
The integration settings window opens.
- Specify the following information in the form:
- Name of the integration — Displayed in the response policy settings.
- ID of the chat to post the messages — you can get the ID in the following way:
- Write the first message to the message bot. The chat ID is generated the first time a message is sent.
- In the address bar of your browser, type:
https://api.telegram.org/bot
<token>
/getUpdates
where <token> is the token of the message bot.
- In the received .json response file, find the "ID" value in the "chat" object. This is the chat ID.
After changing the message history visibility settings for new participants in a Telegram chat, the chat ID is also changed. In this case, you must change the Telegram integration settings and specify the new value for the chat ID.
- Token of the message bot — you receive this token as a result of executing the
/newbot
command in the BotFather bot to create a bot. You can also get the token of a previously created bot by running the/token
command.
- Click the Save button in the top of the window to save the Telegram integration settings.
You can use the configured integration in response policies.
Article ID: 250410, Last review: Dec 4, 2024