How to Connect Telegram with PRTG for Notification Alerts
Jump to navigation
Jump to search
Step 1: Create a Telegram Bot
- Open BotFather in Telegram.
- Type
/startand send. (Screenshot 1) - Type
/newbotto create a new bot. - Choose a name for your bot (e.g.,
azsmart_bot). - Choose a username ending with
_bot(e.g.,azsmartm_bot).

Step 2: Configure Bot Settings
- Use
/helpto see available commands. - Set the bot's description using
/setdescription. (Screenshot 1) - Add an about section with
/setabouttext(e.g.,Hello Admin). - Optionally, set a profile picture using
/setuserpic.

Step 3: Get the HTTP API Token
- After creating the bot, you will receive an HTTP API Token. (Screenshot 2)
- Copy the API Token (e.g.,
8111611674:AAGW9ylV8qj0OV2ehmezV_kB6Qv8ICjRoak).

Step 4: Test the Bot
- Open a browser and use the following URL:
https://api.telegram.org/bot<API-access-token>/getUpdates?offset=0
2.Replace <API-access-token> with your token:
https://api.telegram.org/bot8111611674:AAGW9ylV8qj0OV2ehmezV_kB6Qv8ICjRoak/getUpdates?offset=0
3. Find the chat_id in the response (e.g., 6294319603). (Screenshot 3)
Step 5: Send a Test Message
- To send a test message to your bot:
https://api.telegram.org/bot<API-access-token>/sendMessage?chat_id=<chat_id>&text=Hello
2. Replace <API-access-token> and <chat_id> with your data:
https://api.telegram.org/bot8111611674:AAGW9ylV8qj0OV2ehmezV_kB6Qv8ICjRoak/sendMessage?chat_id=6294319603&text=Hello
Step 6: Create a Group and Add Bots
- Create a Telegram group.
- Add your bot and the
IDBotto the group. - Promote both to Admin.
- Use
GetIDsBotto retrieve the group ID.
Step 7: Send a Message to the Group
- Use the following link to send a message:
https://api.telegram.org/bot<API-access-token>/sendMessage?chat_id=<group_id>&text=Hello
2. Replace <group_id> with the ID you received.
Step 8: Configure PRTG for Telegram Alerts

- Go to Setup → Notification Templates → Add Notification Template. (Screenshot 4)
- Configure the notification as follows:
- URL:
https://api.telegram.org/bot<API-access-token>/sendMessage - HTTP Method: POST
- Payload:
chat_id=-4794387273&text= There’s a *%status* sensor in your PRTG! [%sensor](%linksensor)*Device* %device *Last Message* %lastmessage *Down since* %since *Group* %group *%down*&parse_mode=Markdown
3. Test the notification to ensure it is working correctly.
Final Step: Test and Monitor
- Test the configuration by triggering a PRTG sensor alert.
- Verify that the message is sent to your Telegram group.