feat(telegram): guest mode two-phase reply (Bot API 10.0, text-only) - #402
Open
hashbender wants to merge 1 commit into
Open
feat(telegram): guest mode two-phase reply (Bot API 10.0, text-only)#402hashbender wants to merge 1 commit into
hashbender wants to merge 1 commit into
Conversation
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
guest_messageupdates for chats the bot is not a member ofanswerGuestQueryimmediately on first activity, buffers the streamed reply, then edits the stub in place viaeditMessageText(using the returnedinline_message_id) once the response is readymainfrom the live, production-tested guest-mode code, superseding the earlier stale reconstructions in feat(telegram): two-phase guest reply — immediate stub + progressive streaming NousResearch/hermes-agent#51886 and feat(telegram): guest-mode native media delivery + lazy two-phase stub NousResearch/hermes-agent#52639 (to be closed with a pointer to this PR)Test plan
tests/gateway/test_telegram_guest_reply.py— stub-fire and OPC text-flush coverage_make_adapter()helpers intest_telegram_reactions.py,test_telegram_thread_fallback.py,test_telegram_username_chat_id.pyto include the new guest-mode instance attributes (these tests construct the adapter viaobject.__new__, bypassing__init__)tests/ -k telegramsuite passes with no new regressions vs. a cleanmainbaseline🤖 Generated with Claude Code
Mirror-of: NousResearch#56476
NousResearch#56476