fix(telegram): register commands for group scope + preserve topic thread params#1
Open
BingqingLyu wants to merge 4 commits intomainfrom
Open
fix(telegram): register commands for group scope + preserve topic thread params#1BingqingLyu wants to merge 4 commits intomainfrom
BingqingLyu wants to merge 4 commits intomainfrom
Conversation
This was referenced Apr 27, 2026
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.
Problem
message_thread_idand land in the General topic.Fix
all_group_chatsscope viasetMyCommands.sendMessageresponses inresolveTelegramCommandAuthinclude correct forum topic thread params (omitting General topic id=1 as required).Tests
src/telegram/bot-native-commands.test.tsto assertsetMyCommandsis called withall_group_chatsscope.pnpm vitest run src/telegram/bot-native-commands.test.tsGreptile Overview
Greptile Summary
This PR updates Telegram native command handling in two ways: (1) it registers bot commands for both the default scope and the
all_group_chatsscope to avoid Telegram forum-topic clients showing “This command is not available”, and (2) it preserves forum topic routing (viamessage_thread_id, omitting General topic id=1) for auth/diagnostic and “Command not found” replies so responses stay in the invoking topic.The changes are localized to
src/telegram/bot-native-commands.ts, with a small test update insrc/telegram/bot-native-commands.test.tsto cover the added group-scope registration behavior.Confidence Score: 4/5
(2/5) Greptile learns from your feedback when you react with thumbs up/down!
Context used:
dashboard- CLAUDE.md (source)dashboard- AGENTS.md (source)