Repository navigation
Ask for a Telegram reply box only in a group chat - #25
Merged
neotechnet merged 1 commit intoNov 15, 2026
Merged
Conversation
Tapping the typed-answer button sent a force_reply prompt in every chat, so in a direct chat each typed answer arrived threaded under 'Reply to message'. A direct chat never needs it: the armed map alone matches the next text. A group still does, because an unaddressed message is dropped before the armed check and a reply to the bot counts as addressed.
Codex Review Summary: ✅ CompletedThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
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.
Job: telegram-force-reply-20261115 (Igor).
What changes
Tapping "Type my own answer" on a Telegram card sent a
force_replyprompt in every chat. In Steve's direct chat that made each typed answer arrive threaded under "Reply to message".armTypednow asks for the reply box only whenchat.kind === 'group'. A direct chat gets the same prompt text with no reply control.Why it is safe
onMessage, the gatemsg.chat.kind === 'group' && !msg.mentionedruns before the armed check, so in a direct chat the armed map alone matches the answer.platforms/telegram.jsaround line 125), soforce_replystays load-bearing there and is kept.reply_markup.force_replywhenforceReply === true, sofalsesends a plain message.Tests
forceReply: false, and still proves the typed text answers the card.forceReply: truethere, and the group reply answers the card.forceReply.Changelog: In a direct Telegram chat, typing your own answer to a card no longer threads it under "Reply to message".