Commit 67b1a80
0xMett
fix(moderation): resolve @username via Telegram API fallback in _resolve_user_id
Add bot.get_chat() as a third fallback when resolving @username targets,
after admin list and known_users lookups. Fixes /unban (and /ban, /mute,
/unmute) failing for users not yet tracked in known_users.
Also update UNBAN_USAGE string to mention @username as a valid option.1 parent cc07e65 commit 67b1a80
2 files changed
Lines changed: 8 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
623 | 623 | | |
624 | 624 | | |
625 | 625 | | |
| 626 | + | |
| 627 | + | |
| 628 | + | |
| 629 | + | |
| 630 | + | |
| 631 | + | |
| 632 | + | |
626 | 633 | | |
627 | 634 | | |
628 | 635 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
101 | 101 | | |
102 | 102 | | |
103 | 103 | | |
104 | | - | |
| 104 | + | |
105 | 105 | | |
106 | 106 | | |
107 | 107 | | |
| |||
0 commit comments