mirror of
https://github.com/LonamiWebs/Telethon.git
synced 2025-11-12 20:10:38 +00:00
Fix from_users filter not accounting for None from_id
This commit is contained in:
@@ -156,7 +156,7 @@ class NewMessage(EventBuilder):
|
||||
return
|
||||
|
||||
if self.from_users is not None:
|
||||
if utils.get_peer_id(event.message.from_id) not in self.from_users:
|
||||
if event.message.sender_id not in self.from_users:
|
||||
return
|
||||
|
||||
if self.pattern:
|
||||
|
||||
Reference in New Issue
Block a user