Kaspersky Container Security

Adding Telegram integrations

March 27, 2024

ID 250410

To add a Telegram integration:

  1. Do one of the following:
    • Under AdministrationIntegrations → Notifications, in the Telegram integration section, click the Add new button.
    • In the AdministrationIntegrations → Notifications section, select Telegram integrations. In the window that opens, click the Add button located above the table.

    The integration settings window opens.

  2. 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:
      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 the Save button in the top of the window 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.