This page documents the intended user-facing behavior for a Telegram distribution. The integration, trigger configuration, and framework helpers described here are design targets and work in progress rather than shipped functionality.Telegram distributions connect bot chats, group mentions, replies, and other Telegram activity to Aion agent workflows. The goal is to let a developer configure which inbound Telegram events should count as triggers, normalize them into a generic A2A transport model, and then reply back into the same Telegram chat context by default.
Overview
The default Telegram loop should feel simple even though the transport model is generic:- Configure the Telegram trigger modes at the distribution layer.
- Convert each selected Telegram update into a normalized A2A request.
- Let the framework adapter resolve the response by normal precedence.
- Send the response back into the same Telegram chat, thread, or reply chain by default.
Default Request Loop
Configuration
WIP.Message Mapping
Telegram distributions should map inbound and outbound messages through the same shared transport contracts used by other messaging integrations, while still preserving Telegram-specific chat and reply context. Inbound- Protocol-level request metadata and event identity are defined by Distribution, Event, and Distribution/Messaging.
- Framework-level request mapping is described in LangGraph Message Mapping and Google ADK Message Mapping.
- Default response precedence is: SDK-managed response buffer first, explicit
a2a_outboxsecond, and framework-native fallback third. - Structured outbound parts are defined by Distribution/Messaging and Distribution/Cards.
- Framework-level response mapping is described in LangGraph Message Mapping and Google ADK Message Mapping.
Features
Mentions
Mentions in Telegram groups should be treated as normal inbound message events. The framework sees text plus normalized transport context, and the response flows back into the same group context.- LangGraph
- Google ADK
- A2A
Reactions
Telegram reactions should usually arrive as activity events, not as conversational messages. They should still be available to the framework through the same generic envelope.- LangGraph
- Google ADK
- A2A
Cards
Telegram does not use the same visual model as Slack Block Kit, but it still benefits from a generic card document. The distribution should interpret that document into Telegram-native layouts such as inline keyboards, media captions, or structured reply content.- LangGraph
- Google ADK
- A2A
Streaming
Telegram should preserve the same target message context while streaming. The intent is to post the reply once and then edit that message as new text arrives, similar to how streaming should work in other conversational distributions.- LangGraph
- Google ADK
- A2A
DMs
Telegram private chats are the cleanest default request loop. The inbound message maps totrajectory = "direct-message" and the default outbound response goes right back to that chat.
- LangGraph
- Google ADK
- A2A