mirror of
https://github.com/Mayuri-Chan/pyrofork.git
synced 2026-01-07 15:34:52 +00:00
Don't process empty messages
This commit is contained in:
parent
3419b0b98e
commit
cc9aeb290a
1 changed files with 3 additions and 0 deletions
|
|
@ -138,6 +138,9 @@ class Dispatcher:
|
||||||
self.dispatch(update, users=users, chats=chats, is_raw=True)
|
self.dispatch(update, users=users, chats=chats, is_raw=True)
|
||||||
|
|
||||||
if isinstance(update, Dispatcher.MESSAGE_UPDATES):
|
if isinstance(update, Dispatcher.MESSAGE_UPDATES):
|
||||||
|
if isinstance(update.message, types.MessageEmpty):
|
||||||
|
continue
|
||||||
|
|
||||||
message = utils.parse_messages(
|
message = utils.parse_messages(
|
||||||
self.client,
|
self.client,
|
||||||
update.message,
|
update.message,
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue