idariaidaria.ai
registry
channelchannel.telegram

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.

registryhttps://hub.idaria.ai

setup guide

Create a Telegram bot

Telegram bots are issued by @BotFather — no developer account needed. Takes about 2 minutes.

1. Create the bot

  1. In Telegram, open the chat with @BotFather.
  2. Send /newbot → pick a display name → a unique username ending in bot.
  3. BotFather replies with the HTTP API token (123456:ABC-…). You paste this as the bot token secret during install.
  4. 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/webhook and /api/telegram/agent-bots on 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

v0.9.1
>=1.82.0 <2.0380.5 KB2026-11-27
.zip4d564bdc7cb8…
v0.9.0
>=1.82.0 <2.0147.7 KB2026-11-27
.zip7e922fb3905f…
v0.8.1
>=1.82.0 <2.0368.4 KB2026-11-27
.zipeca503e75e67…
v0.8.0
>=1.82.0 <2.0358.8 KB2026-11-26
.zip02e1dda31c8e…
v0.7.5
>=1.82.0 <2.0330.6 KB2026-11-23
.zipa500ad34f4d2…
v0.7.4
>=1.82.0 <2.0327.4 KB2026-11-23
.zip3a3e62582f0c…
v0.7.3
>=1.82.0 <2.0324.4 KB2026-11-23
.zip31a8a7158a04…
v0.7.2
>=1.82.0 <2.0324.2 KB2026-11-23
.zip58a2963362e7…
v0.7.1
>=1.82.0 <2.0319.9 KB2026-11-23
.zip02d08545f9ba…
v0.7.0
>=1.82.0 <2.0319.9 KB2026-11-22
.zipec64b3425d46…
v0.6.0
>=1.82.0 <2.0278.0 KB2026-11-20
.zip6f7c10397558…
v0.5.0
>=1.79.0 <2.0311.8 KB2026-11-20
.zip52701a6a15b4…
v0.4.0
>=1.75.0 <2.0281.6 KB2026-11-20
.zip9e8db0449575…
v0.3.0
>=1.0 <2.0195.7 KB2026-10-06
.zip519d6244626e…
v0.2.2
>=1.0 <2.0181.2 KB2026-08-24
.zip8a9522a8e7d5…
v0.2.1
>=1.0 <2.0180.8 KB2026-08-18
.zipf2ebe07a46aa…
v0.2.0
>=1.0 <2.0180.8 KB2026-08-17
.zip8b722adb1de2…
v0.1.6
>=1.0 <2.0180.8 KB2026-08-17
.zip0ba8924c820a…
v0.1.5
>=1.0 <2.0180.2 KB2026-07-31
.zip77d804012eb3…
v0.1.4
>=1.0 <2.077.0 KB2026-06-03
.zip421021b457d5…
v0.1.3
>=1.0 <2.070.1 KB2026-06-03
.zip98b162d0caa0…
v0.1.2
>=1.0 <2.069.1 KB2026-05-29
.zip95f527d0783d…
v0.1.1
>=1.0 <2.069.1 KB2026-05-29
.zipddafe9e9902e…

setup fields

Values the operator fills in at install-time.

telegram_bot_tokensecret
Telegram Bot-TokenDer HTTP-API-Token, den @BotFather nach `/newbot` ausgibt (Format `123456:ABC-…`). Wird verschlüsselt im Plugin-Vault gespeichert (Vault-Key `telegram_bot_token`), nie in der installed.json-Config. Ohne Token kann der Channel nicht aktiviert werden.
required
telegram_public_base_urlstring
Public HTTPS Base-URL für den WebhookVollständige HTTPS-Origin, auf der die Middleware öffentlich erreichbar ist (z.B. `https://bot.example.com`), nicht die der Web-UI. Der Webhook braucht außerdem die Freigabe der öffentlichen Pfade `/api/telegram/webhook` und `/api/telegram/agent-bots` auf der Plugin-Seite. Telegram registriert den Webhook unter `<base>/api/telegram/webhook` mit dem konfigurierten Secret-Token. Leer lassen → Plugin nutzt Long-Polling (getUpdates) als Fallback — gut für lokale dev ohne ngrok/cloudflared.
optional
dm_policyenum
DM-Auth-PolicyWer darf den Bot per Direct-Message anschreiben? `pairing` (Standard): Nutzer werden erst über einen Pairing-Link gekoppelt; ungekoppelte DMs bekommen einen Hinweis. `open`: jeder mit dem Bot-Username darf chatten. `disabled`: keine DMs, der Bot schweigt. Ein fehlender oder unbekannter Wert gilt als `pairing`. Gruppen werden davon unabhängig freigeschaltet, wenn ein gekoppelter Nutzer den Bot hinzufügt.
optional
system_namestring
Name des SystemsDer Name, mit dem der Bot das System in seinen eigenen Texten nennt: Willkommen nach dem Pairing ("Willkommen zum <Name> System"), Begrüßung, Hinweis für nicht gekoppelte Nutzer, Gruppen-Freischaltung. Leer → `omadia`.
optional
telegram_admin_tokensecret
Admin-TokenBearer-Token für die Admin-Oberfläche unter `/api/telegram/admin/ui/` (Pairing-Links, Gruppen). Wird verschlüsselt im Plugin-Vault gespeichert (Vault-Key `telegram_admin_token`) und nie geloggt. Leer lassen → das Plugin erzeugt beim ersten Start einen zufälligen Token, den niemand kennt; um die Admin-Oberfläche zu nutzen oder den Token zu rotieren, hier einen eigenen setzen.
optional

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