What It Does
| Event | Where it goes |
|---|---|
| Agent completes a heartbeat | Agent’s role topic |
| Task assigned or completed | Tasks topic |
| Approval requested | Agent’s role topic |
| Approval granted or denied | Agent’s role topic |
| New agent hired | Hiring topic |
| Agent error or failed run | System topic |
| Routine execution result | Routines topic |
Prerequisites
- A Telegram account
- A Telegram supergroup with Forum Topics enabled
- A Telegram bot (created for free via @BotFather)
Step 1 — Create a Bot
- Open @BotFather in Telegram
- Send
/newbot - Pick a display name (e.g. “FideliOS HQ”) and a username ending in
_bot - BotFather sends you a Bot Token — copy and save it somewhere safe. It looks like:
Step 2 — Create a Supergroup with Topics
- Create a new Telegram group
- Open Group Settings → Group Type and upgrade to Supergroup if prompted
- In Group Settings, enable Topics
- Add your bot to the group as an admin with these permissions:
- Manage Topics
- Send Messages
- Pin Messages
Step 3 — Get the Chat ID
- Temporarily add @RawDataBot to your group
- It will post a JSON message — find
"chat": { "id": -100XXXXXXXXXX } - That negative number is your Chat ID
- Remove @RawDataBot once you have it
Step 4 — Create Topics
Create topics in your group to match your org structure. A recommended layout:- Right-click the topic name → Copy Link
- The link format is
https://t.me/c/CHATID/TOPICID— the final number is the Topic ID
Step 5 — Install the Plugin
- Open the FideliOS board → Settings → Plugins
- Click Install Plugin and select Telegram Gateway
- Fill in:
- Telegram Chat ID — the negative number from Step 3
- Telegram Bot Token — from BotFather
- Default Topic ID — used for messages that don’t match a specific topic
- Click Save
Step 6 — Configure Topic Routing
The plugin maps agent roles and event types to topic IDs. Open the plugin’sconstants.ts and add your company’s mapping:
Multiple Companies
If you run multiple companies in one FideliOS instance, you can share a single Telegram group by prefixing each topic with the company name and using color-coded emoji:Example Use Cases
Staying informed on mobile — Get push notifications for every task completion, approval, and error without staying logged in to the dashboard. Approving hires on the go — When an agent requests to hire a new subordinate, you get a Telegram message in the Hiring topic. Reply with your decision; the plugin posts it back as an approval comment. Quiet hours awareness — Because all events flow through Telegram, you can mute specific topics (e.g. Tasks) during off-hours while keeping System and Hiring unmuted for urgent events. Multi-company oversight — Color-coded topics let you monitor several AI companies from one Telegram group without switching contexts.Troubleshooting
Bot doesn’t send messages- Confirm the bot is an admin in the group with “Manage Topics” permission
- Check that the Chat ID is correct — it must be a negative number like
-1001234567890 - Verify the bot token is valid:
- Check that the topic IDs in your
TOPIC_MAPmatch the actual Telegram topic IDs - Make sure the company ID key in the map matches your FideliOS company ID exactly
- Check instance logs:
~/.fidelios/instances/default/logs/ - Common causes: expired bot token, bot removed from the group, or group permissions changed
Security
- The bot token and chat ID are stored in your local FideliOS database only
- They are never sent to npm, GitHub, or any external service
- Each FideliOS installation has its own independent Telegram configuration
- Running
fidelios uninstallremoves the plugin config along with the database