-
Notifications
You must be signed in to change notification settings - Fork 93
Telegram messaging adapter (Phase 0) — pull forward from v0.23.0 #889
Copy link
Copy link
Open
Labels
agentconsumerBlocks consumer adoption — must ship for the v0.20.0 consumer launch windowBlocks consumer adoption — must ship for the v0.20.0 consumer launch windowdomain:surfacesAgent UI, Telegram, WhatsApp, Slack/Discord, mobileAgent UI, Telegram, WhatsApp, Slack/Discord, mobileenhancementNew feature or requestNew feature or requestp1medium prioritymedium prioritytrack:consumer-appHermes-competitor consumer product — mobile-first, voice + messaging + memory + skillsHermes-competitor consumer product — mobile-first, voice + messaging + memory + skills
Metadata
Metadata
Assignees
Labels
agentconsumerBlocks consumer adoption — must ship for the v0.20.0 consumer launch windowBlocks consumer adoption — must ship for the v0.20.0 consumer launch windowdomain:surfacesAgent UI, Telegram, WhatsApp, Slack/Discord, mobileAgent UI, Telegram, WhatsApp, Slack/Discord, mobileenhancementNew feature or requestNew feature or requestp1medium prioritymedium prioritytrack:consumer-appHermes-competitor consumer product — mobile-first, voice + messaging + memory + skillsHermes-competitor consumer product — mobile-first, voice + messaging + memory + skills
Goal
Ship a Telegram messaging adapter in v0.18.2 (May 22) — pulled forward from v0.23.0 (Jun 23). The "your agent lives in Telegram" experience is a category-defining consumer feature; competitors ship it day-one.
Why pull this forward (5+ weeks)
GAIA's current roadmap puts all messaging adapters in v0.23.0 (Autonomous Agent Infrastructure, Jun 23). The flagship comparator — Hermes Agent (Nous Research) — ships 15+ messaging gateways (Telegram, Discord, Slack, WhatsApp, Signal, Matrix, Mattermost, Email, SMS, …) on day one. AMD's own April 2026 blog "Run Hermes Agent Locally on AMD Ryzen AI Max+" recommends Hermes specifically because of this.
For consumer positioning ("your agent meets you where you already chat"), the gap is 8+ weeks of competitive disadvantage. Telegram is the cheapest unlock —
python-telegram-botis mature, no business-account hoops (unlike WhatsApp), no enterprise SSO (unlike Slack). One adapter ships the pitch.Scope (single PR for v0.18.2)
A. Telegram bot adapter
src/gaia/messaging/telegram.py— wrapspython-telegram-bot/start,/help,/clearslash commands + free-form textAgentSDK(gaia.chat.sdk) — every Telegram message becomes a chat turnB. CLI integration
gaia telegram start --token $TELEGRAM_BOT_TOKEN [--allowed-users ...]--background) with health check endpointGAIA_TELEGRAM_ALLOWEDor--allowed-users 12345,67890) — privacy defaultC. Security defaults
shell, nofile_iowithout explicit opt-in) — matches the security pattern from Messaging security: restricted default tool set and input sanitization #690 (Messaging security)D. Documentation
docs/guides/telegram.mdx— setup walkthrough (BotFather → token →gaia telegram start)docs/docs.jsonnavigationE. Tests
python-telegram-botUpdaterGAIA_TELEGRAM_TEST_TOKENenv (skipped in default CI; runs nightly)What this is NOT
Acceptance criteria
gaia telegram start --token $TOKENboots and the bot responds to/startwithin 5 secondsshellcommand)Attribution / prior art
python-telegram-bot(python-telegram-bot.org) — upstream library, MITDependencies