📲 Telegram Notifications

Configure instant event notifications via Telegram bot.

🔧 Bot Setup

  1. Create Bot

    Open @BotFather in Telegram and create a new bot with /newbot

  2. Get Token

    BotFather returns a token like 123456789:ABCdefGHIjklMNOpqrsTUVwxyz

  3. Create Group/Channel

    Create a group or channel and add the bot as administrator

  4. Get Chat ID

    Use @userinfobot or API to get the chat ID

  5. Configure in OKITO

    Enter token and Chat ID in camera settings → Alerts

Group Chat ID is negative: -1001234567890
Private 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:

🤖
OKITO Bot
14:25:33
📱 Phone × 3
📍 Camera: Office Entrance
⏰ 14:25:30 — 14:25:33
🎯 Confidence: 85-92%

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

🤖
OKITO Bot
14:25:33
🚨 #smoking
📍 Camera: Office Entrance
⏰ 14:25:33
🎯 Confidence: 87%

Message Elements

Element Description
🚨 / 📱 / ✓ Event type icon
#smoking Detection class hashtag
📍 Camera Camera name
⏰ Time Event time (HH:MM:SS)
🎯 Confidence Confidence percentage