mirror of
https://github.com/pyrogram/pyrogram
synced 2025-08-29 05:18:10 +00:00
Merge pull request #159 from Jafte/develop
Fix Dispatcher passing parsed updates to the RawUpdateHandler
This commit is contained in:
commit
b6303ff8cf
@ -129,7 +129,7 @@ class Dispatcher:
|
|||||||
if parser is None:
|
if parser is None:
|
||||||
continue
|
continue
|
||||||
|
|
||||||
update, handler_type = parser(update, users, chats)
|
parsed_update, handler_type = parser(update, users, chats)
|
||||||
|
|
||||||
for group in self.groups.values():
|
for group in self.groups.values():
|
||||||
for handler in group:
|
for handler in group:
|
||||||
@ -138,8 +138,8 @@ class Dispatcher:
|
|||||||
if isinstance(handler, RawUpdateHandler):
|
if isinstance(handler, RawUpdateHandler):
|
||||||
args = (update, users, chats)
|
args = (update, users, chats)
|
||||||
elif isinstance(handler, handler_type):
|
elif isinstance(handler, handler_type):
|
||||||
if handler.check(update):
|
if handler.check(parsed_update):
|
||||||
args = (update,)
|
args = (parsed_update,)
|
||||||
|
|
||||||
if args is None:
|
if args is None:
|
||||||
continue
|
continue
|
||||||
|
Loading…
x
Reference in New Issue
Block a user