Repository navigation
feat: Telegram thinking status line behind a config flag - #293
Merged
Merged
Conversation
Off by default. On: in the owner's private chat, an accepted message also streams a sendRichMessageDraft with a <tg-thinking> block (Bot API 10.1), Waking up then Working, until the bot's next message there. Groups and flag off keep typing only, byte for byte. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.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.
Task 2528 (owner msg #6859). Adds
[telegram] thinking_status, off by default.On: in the owner's private chat, an accepted message or button press now also sends
sendRichMessageDraftwith one<tg-thinking>block. Telegram shows this as an animated status line: "Waking up…" at first, then "Working…" on each 4 s typing refresh while the woken run is live. It stops once the bot sends its next message to that chat, and Telegram clears the draft at that point too. Groups gettypingonly, because drafts work in private chats only.Off: today's calls, byte for byte.
API facts (core.telegram.org/bots/api, Bot API 10.5):
sendRichMessageDraftwas added in 10.1 (2026-06-11).RichBlockThinking"may be used only in sendRichMessageDraft".The server adds the status line itself, so the model writes no markup and the prompt and skill are unchanged.
TgBot::accepted,TgBot::awaits_reply,thinking_draftandtyping_loopincrates/axe-telegram/src/telegram.rs.Apirecords the last realsend*per chat.crates/axe-core/src/config.rs.thinking_status_off_sends_typing_onlyandthinking_status_on_streams_a_thinking_draft_until_the_bot_repliesincrates/axe/tests/telegram.rs.docs/user/reference/config.md,docs/user/primitives/bot.md,docs/design/bots.md.🤖 Generated with Claude Code