Conversation
Add Telegram Bot support as a new IM channel alongside Feishu. Uses HTTP long polling (getUpdates) with three-thread architecture: poll thread, AI worker thread, and outbound sendMessage thread. Key changes: - New: telegram.h/telegram.c (582 lines, mirrors feishu.c pattern) - Config: telegram_bot_token + telegram_api_url via Meson/env vars - Build: telegram boolean option in meson_options.txt + claw/meson.build - Service: registered in claw_init.c service table - Cleanup: migrate Feishu enable flag from platform Kconfig to Meson - Proxy: api-proxy.py supports custom port for QEMU testing - Docs: update architecture, getting-started, usage, tuning (en+zh) Signed-off-by: Chao Liu <chao.liu.zevorn@gmail.com>
Signed-off-by: Chao Liu <chao.liu.zevorn@gmail.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
RTCLAW_TELEGRAM_BOT_TOKENenv var or Meson-Dtelegram_bot_token=...api-proxy.pynow supports custom port for QEMU testing of multiple servicesNew Files
include/claw/services/im/telegram.hclaw/services/im/telegram.cModified Files (18)
meson_options.txt,meson.build,claw/meson.build,claw_config.h,claw_gen_config.h.inclaw/claw_init.c(service registration + boot test skip)scripts/api-proxy.py(custom port support)Test Plan
scripts/check-patch.shpasses (0 errors, 0 warnings on new files)-Dtelegram=true[telegram] init ok,started (3 threads),poll thread starting<<< recv chat=... text="hello"→ queued → ai_chat called