Skip to content

Commit

Permalink
fix RawUpdateHandler
Browse files Browse the repository at this point in the history
  • Loading branch information
Jafte committed Nov 14, 2018
1 parent 54e7539 commit 40d7ed2
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions pyrogram/client/dispatcher/dispatcher.py
Expand Up @@ -129,7 +129,7 @@ def update_worker(self):
if parser is None:
continue

update, handler_type = parser(update, users, chats)
parsed_update, handler_type = parser(update, users, chats)

for group in self.groups.values():
for handler in group:
Expand All @@ -138,8 +138,8 @@ def update_worker(self):
if isinstance(handler, RawUpdateHandler):
args = (update, users, chats)
elif isinstance(handler, handler_type):
if handler.check(update):
args = (update,)
if handler.check(parsed_update):
args = (parsed_update,)

if args is None:
continue
Expand Down

0 comments on commit 40d7ed2

Please sign in to comment.