mirror of
https://github.com/LonamiWebs/Telethon.git
synced 2025-08-05 04:30:22 +03:00
Update __init__.py
fixes
This commit is contained in:
parent
246df07114
commit
0696a115bd
|
@ -238,7 +238,7 @@ class NewMessage(_EventBuilder):
|
|||
return
|
||||
if self.outgoing and not event.message.out:
|
||||
return
|
||||
if self.regex and not re.match(self.regex, event.raw_text):
|
||||
if self.pattern and not re.match(self.pattern, event.message.message):
|
||||
return
|
||||
|
||||
return self._filter_event(event)
|
||||
|
|
Loading…
Reference in New Issue
Block a user