@assemblyline-agents/telegram
v4.0.0
Published
Official Assembly Line Telegram channel plugin.
Maintainers
Readme
@assemblyline-agents/telegram
Official Assembly Line Telegram channel plugin.
It exports defineTelegramChannel(options), which ingests Telegram bot webhook updates and delivers agent replies through the Telegram Bot API, plus defineTelegramConnection for direct API access and channel tools for richer interactions.
Behavior notes:
- Outbound replies longer than Telegram's 4096-character limit are split into chunks (preferring newline boundaries) and sent sequentially; only the first chunk replies to the triggering message.
- With
parseModeconfigured, a chunk Telegram rejects with a 400 "can't parse entities" error is retried once as plain text, so unescaped agent output degrades to plain delivery instead of failing permanently. - Inbound
text_linkentities are rewritten as[label](url)so the agent sees the URL behind hyperlinked labels.
Install
npm install @assemblyline-agents/telegramPart of Assembly Line
This package is part of Assembly Line, a vendor-neutral, filesystem-first framework for durable AI agents. See the developer documentation in docs/developers/ for setup, agent authoring, and deployment guides.
License
MIT
