2
0
mirror of https://github.com/pyrogram/pyrogram synced 2025-08-29 05:18:10 +00:00

First working (and ugly) way for fixing raw updates being swallowed

This commit is contained in:
Dan 2019-01-30 17:16:50 +01:00
parent adfba5ffdf
commit f0d059da07

View File

@ -128,10 +128,11 @@ class Dispatcher:
parser = self.update_parsers.get(type(update), None)
if parser is None:
continue
parsed_update, handler_type = parser(update, users, chats)
parsed_update, handler_type = (
parser(update, users, chats)
if parser
else (None, type)
)
for group in self.groups.values():
try: