Kaspersky Container Security

Adding Telegram integrations

June 17, 2024

ID 275121

To add a Telegram integration:

  1. Under AdministrationIntegrations → Notifications, under Telegram, click Add integration.

    The integration settings window opens.

  2. Specify the following information in the form:
    • Integration name. displayed in the response policy settings.
    • ID of the chat to post the messages — you can get the ID in the following way:
      1. Write the first message to the message bot. The chat ID is generated the first time a message is sent.
      2. In the address bar of your browser, type:

        https://api.telegram.org/bot<token>/getUpdates

        where <token> is the token of the message bot.

      3. 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.
  3. Click Test connection to see if a connection with Telegram can be established.
  4. Click Add to save the Telegram integration settings.

Example Telegram integration settings

You can use the configured integration in response policies.

Did you find this article helpful?
What can we do better?
Thank you for your feedback! You're helping us improve.
Thank you for your feedback! You're helping us improve.