Files
openclaw/src/telegram
Mark Liu 29425e27e5 fix(telegram): match DM allowFrom against sender user id
Telegram DM access-control incorrectly used chatId as the allowFrom match key.

For DMs, allowFrom entries are typically Telegram user ids (msg.from.id) and/or @usernames. Using chatId causes legitimate DMs to be rejected or silently dropped even when dmPolicy is open/allowlist.

This change matches allowFrom against the sender's user id when available, falling back to chatId only if msg.from.id is missing.

Tests: existing telegram DM/thread routing tests pass.

Closes #4515
2026-02-09 22:59:47 +05:30
..
2026-01-30 03:16:21 +01:00
2026-01-07 04:16:39 +01:00
2026-02-04 04:09:53 -08:00
2026-01-30 03:16:21 +01:00
2026-01-15 17:07:38 +00:00