fix(telegram): use group allowFrom for commands in groups#29175
Open
ivelin wants to merge 2 commits intoopenclaw:mainfrom
Open
fix(telegram): use group allowFrom for commands in groups#29175ivelin wants to merge 2 commits intoopenclaw:mainfrom
ivelin wants to merge 2 commits intoopenclaw:mainfrom
Conversation
Previously, telegram native commands in groups were authorized using the DM allowFrom config instead of the group allowFrom config. This was a regression introduced in the security hardening that separated group auth from DM pairing-store (commit 64de4b6). This fix ensures that: - Commands in groups use group allowFrom (or groupAllowFrom) - Commands in DMs continue to use DM allowFrom - Users in DM allowFrom but NOT in group allowFrom are properly blocked in groups Fixes regression where slash commands stopped working in group topics after 2026.2.25+ security update. Added regression tests in bot-native-commands.group-auth.test.ts
Contributor
Greptile SummaryFixed authorization bug where Telegram slash commands incorrectly used DM
Confidence Score: 5/5
Last reviewed commit: 7aef222 |
Author
|
FYI, CI failure is not related to this PR. |
4 tasks
|
This pull request has been automatically marked as stale due to inactivity. |
|
This pull request has been automatically marked as stale due to inactivity. |
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
Describe the problem and fix in 2–5 bullets:
Change Type (select all)
Scope (select all touched areas)
Linked Issue/PR
User-visible / Behavior Changes
Security Impact (required)
Repro + Verification
Environment
Steps
Expected
Actual (before fix)
Evidence
Human Verification (required)
What you personally verified (and how):
Compatibility / Migration
Failure Recovery (if this breaks)
Risks and Mitigations
List only real risks for this PR: