feat: self-hosted Telegram bridge for the SDK (Fixes #1426) - #1427
Marcus-Mok-GH wants to merge 1 commit into
Conversation
|
You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard. |
|
Nice idea and a genuinely useful addition — a zero-dependency example showing how to drive an agent from Telegram fits well alongside the other SDK examples, and per-chat session/queueing logic in The main issue is robustness for something meant to run continuously: Smaller things worth a look before this is portable:
With the crash-on-network-error issue fixed this looks like a solid, mergeable example. |
sdk/examples/telegram-bot.ts: a dependency-free Telegram bridge that forwards chat messages to an agent run and replies with its text output, so cloud/free users can drive the agent from their phone instead of the website.previousRunto continue context;/newresets; messages queue per chat so runs never overlap.fetchlong-polling against the Telegram Bot API; agent id and working directory configurable viaFREEBUFF_AGENT/FREEBUFF_WORKDIR.sdk/README.md(Example 3) and notes it insdk/CHANGELOG.md.Fixes #1426
Happy to adapt this to however the team would want a hosted version to work (auth, which agent ids to expose, etc.). Just let me know.