Skip to main content

Telegram Integration

CleverOps can post your alarm notifications into a Telegram group or channel, giving you and your team an extra real-time channel for security events. It is especially useful for teams that already use Telegram day to day. Each message carries the alarm details from CleverOps, a camera snapshot when there is one, and the site's keyholders with their phone numbers.

Telegram runs alongside your normal alarm handling. Turning it on doesn't change how events reach your operators.

What you need​

  • A Telegram group or channel where the notifications should appear.
  • The chat ID of that group or channel. It is a number, for example -1001234567890 for a group, or a positive number for a direct chat.
  • The bot that posts the messages added to that group. You don't enter a bot token in CleverOps. If you don't know which bot to add, or how to find the chat ID, ask CleverCam.

Telegram bots and chat IDs are set up in Telegram itself. Click Setup guide on the card for the steps, which are also summarised below.

Keep your bot details private

A bot's token gives full control of that bot. Never share it publicly or include it in screenshots.

Set it up in CleverOps​

Video Configuring Telegram · 0:28
  1. Click Settings in the sidebar.
  2. Under Workspace, open Contact details.
  3. Scroll down to the Telegram card.
  4. Tick Enable Telegram notifications.
  5. Enter the Telegram chat ID.
Settings → Contact details: the Telegram card with the Enable toggle and chat ID field.
Settings → Contact details: the Telegram card with the Enable toggle and chat ID field.

Everything saves automatically: the switch saves the moment you tick it, and the chat ID saves when you click out of the field. The chat ID must be numeric. If it isn't, the field shows Chat ID must be numeric and nothing is saved. Clearing the field removes the chat ID.

If Telegram is switched on but no chat ID is set, nothing is delivered, and an amber dot appears on Contact details in the Settings list to remind you.

The Setup guide button opens a short walk-through in CleverOps.

The Setup guide dialog walks through creating a bot, adding it to a group, and capturing the chat ID.
The Setup guide dialog walks through creating a bot, adding it to a group, and capturing the chat ID.

The guide's steps are:

  1. Open Telegram, search for BotFather, and create a bot with /newbot.
  2. Create a Telegram group, or use an existing one, where alerts should be posted.
  3. Add the bot to that group and give it admin permissions if required.
  4. Send at least one message in the group so Telegram creates the chat history.
  5. Get the numeric chat ID and paste it into CleverOps.
  6. Enable Telegram notifications and test one event to confirm delivery.

Turn it off and on​

You can pause Telegram without losing your settings.

Toggle off to pause forwarding (the chat ID is preserved); the chat ID field rejects non-numeric values inline.
Toggle off to pause forwarding (the chat ID is preserved); the chat ID field rejects non-numeric values inline.
  • Off: untick Enable Telegram notifications. Notifications stop, and the chat ID stays saved.
  • On: tick it again to resume.

Test it​

  1. Wait for a real event at one of your sites, or trigger a test event.
  2. Check your Telegram group or channel for the notification.
  3. Confirm it shows the alarm details, the site, the time and a snapshot (if the camera provided one).

If nothing appears, see the troubleshooting table below.

Delivery, retries and photos​

Every notification is queued and then sent, so a hiccup at Telegram doesn't lose it:

  • Retries. If Telegram is busy (it limits how fast a bot may post into one group) or can't be reached, CleverOps waits as long as Telegram asks and tries again.
  • Fifteen-minute cut-off. A notification that still hasn't gone out 15 minutes after the event is dropped instead of posted late, so the group never sees an old alarm as if it were happening now.
  • Late notifications say so. One that reaches Telegram more than two minutes after the event starts with a line such as ⏱ Delayed — raised at 14:05 (South African time).
  • Photos. Some cameras deliver their snapshot a few seconds after the alarm. CleverOps waits up to about 45 seconds for it. If it still hasn't arrived, the notification is posted without it and ends with (No photo: the camera image was not available.)
  • Keyholders. When the site's keyholders are listed, people who are hidden from the call list, or whose access to the site has expired, are left out.

Not the only Telegram stream​

This page is about the event stream: alarms from your sites, posted as they happen to the chat ID set on Contact details.

There is a second, separate stream for your own infrastructure: a receiver going quiet, a serial gateway losing its link, or a control-room router dropping off. It is set up under Settings → Alarm Receivers → Alerts, has its own destination and its own severity filter, and doesn't use the chat ID on this page. See Alarm Receivers → Alerts.

The two can post to the same group or to different ones. Keeping them apart is usually better: the event stream is busy, and a dead receiver shouldn't scroll past unread.

Troubleshooting​

IssueWhat to check
No notifications in TelegramEnable Telegram notifications is ticked, a chat ID is saved, and the bot is a member of that group or channel.
The bot is in the group but doesn't postGive the bot admin or posting permission. In a channel, it needs admin rights.
Notifications arrive lateSee Late notifications say so above. Telegram was busy or unreachable and the message was retried.
No snapshotsConfirm the cameras at the site are online and producing snapshots. A notification ending with (No photo: the camera image was not available.) means the image didn't reach CleverCam within about 45 seconds. If it arrives later, it shows on the event in the control room.
The bot is no longer in the groupAdd it back and check its permissions.
The chat ID won't saveIt must be numeric. Copy it again without spaces or letters.
One destination

All events go to the single chat ID you configure.