Telegram Integration
Get PixoMonitor alerts delivered instantly to Telegram—on your phone, desktop, or web. Perfect for on-the-go monitoring.
Overview
The Telegram integration sends alert messages through a Telegram bot to your specified chat. Alerts include:
- Formatted messages — Clean HTML formatting for easy reading
- Status indicators — Emoji-based status at a glance
- Complete details — Monitor name, URL, status, errors, and timestamps
- Instant delivery — Push notifications to all your Telegram devices
Telegram alerts work great for personal monitoring or small teams. Create a group chat to share alerts with your team.
Setting Up Telegram Alerts
Create a Telegram Bot
Open Telegram and search for @BotFather (the official bot for creating bots).
- Start a chat with @BotFather
- Send the command
/newbot - Follow the prompts to name your bot
- Choose a username ending in
bot(e.g.,MyMonitoringBot)
BotFather will give you an API token that looks like:
123456789:ABCdefGHIjklMNOpqrsTUVwxyz
Save this token—you'll need it for PixoMonitor.
Get Your Chat ID
The chat ID tells the bot where to send messages. There are several ways to get it:
For personal chats:
- Start a chat with your new bot (search for its username)
- Send any message to the bot
- Visit:
https://api.telegram.org/bot<YOUR_TOKEN>/getUpdates - Find
"chat":{"id":123456789}in the response—that number is your chat ID
For group chats:
- Add your bot to the group
- Send a message in the group
- Use the same getUpdates URL to find the group's chat ID (it will be negative, like
-123456789)
Add to PixoMonitor
In PixoMonitor, go to Settings → Alert Channels and click Add Alert Channel:
- Name: A descriptive name (e.g., "Telegram Personal")
- Type: Select Telegram
- Bot Token: Paste your bot's API token
- Chat ID: Enter the chat ID (include the minus sign for groups)
- Click Save
Assign to Monitors
Edit your monitors to include the Telegram alert channel, or set it as a default for all monitors.
Alert Message Format
Telegram alerts are formatted with HTML for clear, readable messages:
DOWN Alert
🔴 Monitor Alert
Monitor: MyWebsite
Status: DOWN
URL: https://mywebsite.com
Error: Connection timeout after 30000ms
Time: 3/24/2026, 10:30:45 AM
PixoMonitor Monitoring
UP (Recovery) Alert
✅ Monitor Alert
Monitor: MyWebsite
Status: UP
URL: https://mywebsite.com
Time: 3/24/2026, 10:35:12 AM
PixoMonitor Monitoring
Degraded Alert
⚠️ Monitor Alert
Monitor: MyWebsite
Status: DEGRADED
URL: https://mywebsite.com
Time: 3/24/2026, 10:32:00 AM
PixoMonitor Monitoring
Status names are displayed in bold for quick scanning. Error details are included when available.
Finding Your Chat ID (Alternative Methods)
Using @userinfobot
- Search for @userinfobot on Telegram
- Start a chat and send any message
- The bot replies with your user ID
Using @RawDataBot
- Add @RawDataBot to your group
- The bot will post the group's chat ID
- Remove the bot after getting the ID
For Channels
If sending to a Telegram channel:
- Add your bot as an administrator of the channel
- Use the channel's @username as the chat ID (e.g.,
@mychannelname) - Or use the numeric ID from getUpdates
For group chats, your bot must be a member of the group to send messages. For channels, the bot needs administrator privileges.
Best Practices
Personal vs. Group Alerts
- Personal chat: Great for solo developers or on-call notifications
- Group chat: Share alerts with your team
- Channel: Broadcast alerts to subscribers (one-way communication)
Notification Settings
Configure Telegram notification settings for your alert chat:
- All messages: Immediate push notifications for every alert
- Muted: Silent notifications, check when convenient
- Custom sounds: Set a distinctive alert tone for monitoring messages
Bot Privacy
By default, bots in groups only receive messages that mention them or start with a command. For groups:
- Talk to @BotFather
- Send
/setprivacy - Choose your bot
- Select Disable to let the bot receive all messages (not required for PixoMonitor, but useful for testing)
Multiple Telegram Destinations
Create multiple Telegram alert channels in PixoMonitor to:
- Send critical alerts to yourself and less critical ones to a team group
- Route different monitors to different chats
- Separate personal and work notifications
Troubleshooting
"Chat not found" Error
- Verify chat ID: Make sure the ID is correct and includes the minus sign for groups
- Bot membership: Ensure the bot is a member of the group or has access to the chat
- Start the bot: For personal chats, you must start a conversation with the bot first
"Unauthorized" Error
- Check token: Verify the bot token is correct and complete
- Bot status: Make sure the bot hasn't been revoked by BotFather
- Token format: The token should look like
123456789:ABCdef...
Messages Not Arriving
- Test the channel: Use PixoMonitor's Test button
- Check Telegram status: Telegram might be experiencing issues
- Verify bot permissions: For groups, ensure the bot can send messages
- Check blocked status: Make sure you haven't blocked the bot
Getting Updates Shows Nothing
If getUpdates returns empty:
- Make sure you've sent a message to the bot recently
- Try sending another message and check again
- Clear pending updates by visiting:
https://api.telegram.org/bot<TOKEN>/getUpdates?offset=-1
Security Considerations
- Token protection: Keep your bot token secret—anyone with it can control your bot
- Chat ID: While less sensitive, avoid sharing chat IDs publicly
- Bot visibility: Consider who can see messages in group chats
- Admin rights: For channels, the bot needs admin rights to post
