Integrate Telegram with Firewall Analyzer


    Telegram is a cloud-based instant messaging, video telephonic and VoIP service with end-to-end encryption application. Users can send messages and exchange photos, videos, stickers, audio and files of any type in Telegram. Using webhook, you can now integrate Telegram with Firewall Analyzer and receive instant alerts on networks hogs in your Telegram Group.

    Integrate Telegram - ManageEngine Firewall Analyzer

    Step 1: Create a new bot in Telegram

    1. In Telegram, search for BotFather. BotFather is a program that helps you create custom bots of your preferences.
    2. Enter the command /start.
    3. In the response, click on /newbot.
    4. Follow the responses and provide a custom name and a unique username for your bot.
    5. Once the bot is created, a unique <token> is generated which helps you control the bot.

    Step 2: Providing Admin privileges to the newly created bot

    1. Add the newly created bot to the Group to which Firewall Analyzer alerts have to be notified.
    2. Provide Admin privileges to the bot.
    3. Retrieve the <chat_id> and verify the <token>
    4. Hit the request
      https://api.telegram.org/bot<<token>>/getUpdates
      in your browser.
    5. In the response, verify the name of your Group and copy the <chat_id>
    6. To check the <token>, hit request
      https://api.telegram.org/bot<<token>>/sendMessage?chat_id=<<chat_id>>&text=<<custom_message>>
    7. Check if the <custom_message> is delivered to your Telegram Group.

    Step 4: Configure webhook in Firewall Analyzer

    1. In Firewall Analyzer, go to Settings > Others> Notification Template> Add Profile.
    2. Choose Invoke a Webhook.
    3. After selecting HTTP Method POST, paste the webhook URL
      https://api.telegram.org/bot<<token>>/sendMessage
    4. Choose form_urlencoded as the DataType.
    5. In the Custom Parameters box, Type chat_id and enter its corresponding value <chat_id>
    6. Add another field text and select the required variable such as Message of the alarm.
    7. Click on Save.

    Webhooks with Telegram

     

     

     

    Telegram is now integrated with Webhooks in Firewall Analyzer.