From 40d7ed2b8eb113aafc13a040d7f1f1b3a55de253 Mon Sep 17 00:00:00 2001 From: Aleksandr Pyatnitsin Date: Wed, 14 Nov 2018 23:21:19 +0300 Subject: [PATCH] fix RawUpdateHandler --- pyrogram/client/dispatcher/dispatcher.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pyrogram/client/dispatcher/dispatcher.py b/pyrogram/client/dispatcher/dispatcher.py index a61e8077..3ab704fc 100644 --- a/pyrogram/client/dispatcher/dispatcher.py +++ b/pyrogram/client/dispatcher/dispatcher.py @@ -129,7 +129,7 @@ class Dispatcher: 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: @@ -138,8 +138,8 @@ class Dispatcher: 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