Files
Moltbot/src
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-02-04 10:37:14 -05:00
2026-02-09 09:58:58 +09:00
2026-01-14 15:02:19 +00:00
2026-02-03 06:10:19 +00:00