📲 Telegram Notifications
Configure instant event notifications via Telegram bot.
🔧 Bot Setup
-
Create Bot
Open
@BotFatherin Telegram and create a new bot with/newbot -
Get Token
BotFather returns a token like
123456789:ABCdefGHIjklMNOpqrsTUVwxyz -
Create Group/Channel
Create a group or channel and add the bot as administrator
-
Get Chat ID
Use
@userinfobotor API to get the chat ID -
Configure in OKITO
Enter token and Chat ID in camera settings → Alerts
-1001234567890Private Chat ID is positive:
123456789
⚙️ Settings
Basic Parameters
| Parameter | Description | Default |
|---|---|---|
Enable Telegram Alerts |
Enable notification sending | Off |
Bot Token |
Bot token from BotFather | — |
Chat ID |
Chat/group ID for sending | — |
Cooldown (sec) |
Min time between same-type notifications | 60 |
Batch (sec) |
Event grouping window for same type | 5 |
Cooldown is a Telegram sending rate limit, not a workplace absence timer.
For Workplace, use Absence alert after (sec).
Event Grouping (Batch)
If multiple events of the same type occur within Batch (sec) seconds,
they are combined into one message:
workplace_absence and workplace_return events are always sent separately.
📸 Screenshots
Screenshots from the camera are attached to each notification.
Screenshot Parameters
| Parameter | Description | Default |
|---|---|---|
Before |
Number of frames before event | 2 |
After |
Number of frames after event | 2 |
Interval |
Interval between screenshots (sec) | 3 |
Width |
Screenshot width (px) | 640 |
Height |
Screenshot height (px) | 480 |
📋 Notification Format
Message Elements
| Element | Description |
|---|---|
| 🚨 / 📱 / ✓ | Event type icon |
#smoking |
Detection class hashtag |
| 📍 Camera | Camera name |
| ⏰ Time | Event time (HH:MM:SS) |
| 🎯 Confidence | Confidence percentage |