Telegram Channel
@omadia/channel-telegram
Telegram als zweiter First-Class-Channel von Omadia. Spricht die Telegram Bot API direkt (kein Drittanbieter-SDK), supports Webhook + Long-Polling-Fallback, Antworten als Klartext (Absender nur wo nötig, Beiträge anderer Agenten als "Name: …", Auswahl per Nummer statt Buttons), Agentenwahl per /agent, ehrlicher Gruppen-Roster (complete/partial/unknown), eigener Bot pro Agent möglich. Self-contained — keine `depends_on`-Beziehung. Validiert die @omadia/channel-sdk Contracts gegen ein Runtime ohne Bot-Framework.
- latest
- v0.9.1
- license
- MIT
- versions
- 23
- author
- byte5 GmbH
install
In your idaria instance, open Admin → Registries and add this registry, then install Telegram Channel from Admin → Plugins → Store.
https://hub.idaria.aisetup guide
Create a Telegram bot
Telegram bots are issued by @BotFather — no developer account needed. Takes about 2 minutes.
1. Create the bot
- In Telegram, open the chat with @BotFather.
- Send
/newbot→ pick a display name → a unique username ending inbot. - BotFather replies with the HTTP API token (
123456:ABC-…). You paste this as the bot token secret during install. - For groups:
/setprivacy→ choose the bot → Disable, then add the bot to the group (or remove and re-add it; the setting applies only to groups the bot joins afterwards). With privacy mode on (the default) the bot receives only replies to its own messages and commands like/agent@<bot>: an @-mention never reaches it. Making the bot an admin of the group has the same effect as disabling it.
2. Public URL vs. long-polling
- Public HTTPS host: set Public HTTPS Base-URL to the origin of
the middleware (e.g.
https://bot.example.com), not of the web UI. Telegram delivers updates to<base>/api/telegram/webhook; grant the public paths/api/telegram/webhookand/api/telegram/agent-botson the plugin page, or the kernel's session gate refuses them. - No public host (local dev): leave it empty → the bot uses long-polling (getUpdates), no tunnel needed.
3. DM policy
DM-Auth-Policy controls who may DM the bot: pairing (default — users
pair via a QR deep-link first), open (anyone with the username), or
disabled. Group access is handled separately when a paired operator adds
the bot to a group.
versions
setup fields
Values the operator fills in at install-time.
permissions
secrets
runtime_write: true
memory
reads: [0] · writes: [0] · trees: [1]
graph
reads: [0] · writes: [0]
network
outbound: [1]
public_paths
0: /api/telegram/webhook · 1: /api/telegram/agent-bots
filesystem
scratch: false