openclaw/docs
nicolasstanley 4a5e9f0a4f
fix(telegram): accept messages from group members in allowlisted groups (#9775)
* fix(telegram): accept messages from group members in allowlisted groups

Issue #4559: Telegram bot was silently dropping messages from non-paired users
in allowlisted group chats due to overly strict sender filtering.

The fix adds a check to distinguish between:
1. Group itself is allowlisted → accept messages from any member
2. Group is NOT allowlisted → only accept from allowlisted senders

Changes:
- Check if group ID is in the allowlist (or allowlist is wildcard)
- Only reject sender if they're not in allowlist AND group is not allowlisted
- Improved logging to indicate the actual reason for rejection

This preserves security controls while fixing the UX issue where group members
couldn't participate unless individually allowlisted.

Backwards compatible: existing allowlists continue to work as before.

* style: format telegram fix for oxfmt compliance

* refactor(telegram): clarify group allowlist semantics in fix for #4559

Changes:
- Rename 'isGroupInAllowlist' to 'isGroupChatIdInAllowlist' for clarity
- Expand comments to explain the semantic distinction:
  * Group chat ID in allowlist -> accept any group member (fixes #4559)
  * Group chat ID NOT in allowlist -> enforce sender allowlist (preserves security)
- This addresses concerns about config semantics raised in code review

The fix maintains backward compatibility:
- 'groupAllowFrom' with group chat IDs now correctly acts as group enablement
- 'groupAllowFrom' with sender IDs continues to work as sender allowlist
- Operators should use group chat IDs for group enablement, sender IDs for sender control

Note: If operators were using 'groupAllowFrom' with group IDs expecting sender-level
filtering, they should migrate to a separate sender allowlist config. This is the
intended behavior per issue #4559.

* Telegram: allow per-group groupPolicy overrides

* Telegram: support per-group groupPolicy overrides (#9775) (thanks @nicolasstanley)

---------

Co-authored-by: George Pickett <gpickett00@gmail.com>
2026-02-05 14:45:45 -08:00
..
.i18n 🤖 docs: mirror landing revamp for zh-CN 2026-02-04 10:42:12 -08:00
assets docs(onboarding): add bootstrapping page (#9767) 2026-02-05 12:08:35 -05:00
automation fix: cron announce delivery path (#8540) (thanks @tyler6204) 2026-02-04 01:03:59 -08:00
channels fix(telegram): accept messages from group members in allowlisted groups (#9775) 2026-02-05 14:45:45 -08:00
cli docs(onboarding): streamline CLI onboarding docs (#9830) 2026-02-05 13:46:11 -05:00
concepts docs: tighten secure DM example 2026-02-05 14:27:56 -08:00
debug Docs: add nav titles across docs (#5689) 2026-01-31 15:04:03 -06:00
diagnostics Docs: add nav titles across docs (#5689) 2026-01-31 15:04:03 -06:00
experiments Docs: add nav titles across docs (#5689) 2026-01-31 15:04:03 -06:00
gateway docs: restructure Get Started tab and improve onboarding flow (#9950) 2026-02-05 17:45:01 -05:00
help docs: restructure Get Started tab and improve onboarding flow (#9950) 2026-02-05 17:45:01 -05:00
hooks Docs: add nav titles across docs (#5689) 2026-01-31 15:04:03 -06:00
images Channels: finish Feishu/Lark integration 2026-02-03 14:27:39 -08:00
install docs: restructure Get Started tab and improve onboarding flow (#9950) 2026-02-05 17:45:01 -05:00
nodes chore: apply local workspace updates (#9911) 2026-02-05 16:54:44 -05:00
platforms docs: restructure Get Started tab and improve onboarding flow (#9950) 2026-02-05 17:45:01 -05:00
plugins fix: harden voice-call webhook verification 2026-02-03 23:47:27 -08:00
providers chore: apply local workspace updates (#9911) 2026-02-05 16:54:44 -05:00
refactor Docs: add nav titles across docs (#5689) 2026-01-31 15:04:03 -06:00
reference docs: restructure Get Started tab and improve onboarding flow (#9950) 2026-02-05 17:45:01 -05:00
security chore: Run `pnpm format:fix`. 2026-01-31 21:13:13 +09:00
start docs: restructure Get Started tab and improve onboarding flow (#9950) 2026-02-05 17:45:01 -05:00
tools chore: apply local workspace updates (#9911) 2026-02-05 16:54:44 -05:00
web Security: Prevent gateway credential exfiltration via URL override (#9179) 2026-02-04 18:59:44 -05:00
zh-CN docs: restructure Get Started tab and improve onboarding flow (#9950) 2026-02-05 17:45:01 -05:00
.DS_Store docs: restructure Get Started tab and improve onboarding flow (#9950) 2026-02-05 17:45:01 -05:00
CNAME refactor: rename to openclaw 2026-01-30 03:16:21 +01:00
bedrock.md chore: apply local workspace updates (#9911) 2026-02-05 16:54:44 -05:00
brave-search.md Docs: add nav titles across docs (#5689) 2026-01-31 15:04:03 -06:00
broadcast-groups.md Docs: add nav titles across docs (#5689) 2026-01-31 15:04:03 -06:00
date-time.md Docs: add nav titles across docs (#5689) 2026-01-31 15:04:03 -06:00
debugging.md Docs: add nav titles across docs (#5689) 2026-01-31 15:04:03 -06:00
docs.json docs: restructure Get Started tab and improve onboarding flow (#9950) 2026-02-05 17:45:01 -05:00
environment.md Docs: add nav titles across docs (#5689) 2026-01-31 15:04:03 -06:00
hooks.md Docs: add nav titles across docs (#5689) 2026-01-31 15:04:03 -06:00
index.md docs: restructure Get Started tab and improve onboarding flow (#9950) 2026-02-05 17:45:01 -05:00
logging.md Docs: add nav titles across docs (#5689) 2026-01-31 15:04:03 -06:00
multi-agent-sandbox-tools.md chore: Run `pnpm format:fix`. 2026-01-31 21:13:13 +09:00
network.md Docs: add nav titles across docs (#5689) 2026-01-31 15:04:03 -06:00
perplexity.md Docs: add nav titles across docs (#5689) 2026-01-31 15:04:03 -06:00
pi-dev.md Docs: add nav titles across docs (#5689) 2026-01-31 15:04:03 -06:00
pi.md fix: align pi-coding-agent typings and docs 2026-02-01 16:08:01 -08:00
plugin.md Docs: add nav titles across docs (#5689) 2026-01-31 15:04:03 -06:00
prose.md Docs: add nav titles across docs (#5689) 2026-01-31 15:04:03 -06:00
scripts.md chore: clean up git hooks and actually install them again. 2026-02-03 22:08:24 +09:00
style.css Docs: streamline start and install docs (#9648) 2026-02-05 10:09:45 -05:00
testing.md chore: apply local workspace updates (#9911) 2026-02-05 16:54:44 -05:00
token-use.md chore: apply local workspace updates (#9911) 2026-02-05 16:54:44 -05:00
tts.md Docs: add nav titles across docs (#5689) 2026-01-31 15:04:03 -06:00
tui.md Security: Prevent gateway credential exfiltration via URL override (#9179) 2026-02-04 18:59:44 -05:00
vps.md docs: restructure Get Started tab and improve onboarding flow (#9950) 2026-02-05 17:45:01 -05:00
whatsapp-openclaw-ai-zh.jpg Docs: add zh-CN landing notice + AI image 2026-02-02 18:35:01 +01:00
whatsapp-openclaw.jpg refactor: rename to openclaw 2026-01-30 03:16:21 +01:00