mirror of
https://github.com/LonamiWebs/Telethon.git
synced 2025-08-05 04:30:22 +03:00
Revoke to event.message.message
This commit is contained in:
parent
fb3e9a4c3b
commit
7939f964c9
|
@ -255,7 +255,7 @@ class NewMessage(_EventBuilder):
|
|||
return
|
||||
|
||||
if self.pattern:
|
||||
match = self.pattern(event.text or '')
|
||||
match = self.pattern(event.message.message or '')
|
||||
if not match:
|
||||
return
|
||||
event.pattern_match = match
|
||||
|
|
Loading…
Reference in New Issue
Block a user