Skip to main content

Crate astrid_telegram

Crate astrid_telegram 

Source
Expand description

Astrid Telegram Bot โ€” a thin client for the Astrid agent runtime.

Connects to a running astridd daemon via WebSocket JSON-RPC and exposes the agent through a Telegram bot interface.

This crate can be used as a library (embedded in the daemon) or as a standalone binary (astrid-telegram).

Modulesยง

approval
Approval flow via Telegram inline keyboards.
bot
Teloxide bot setup, dispatcher, and handler registration.
client
Daemon client for the Telegram bot.
config
Configuration for the Telegram bot.
elicitation
Elicitation flow via Telegram inline keyboards and text replies.
error
Error types for the Telegram bot.
event_loop
Daemon event consumer: streams text, tool calls, and approvals to Telegram.
format
Markdown to Telegram HTML conversion and text chunking.
handler
Message handler: receives text from Telegram, sends to daemon, starts event loop.
session
Session mapping: Telegram ChatId โ†’ daemon SessionId.