mirror of
https://github.com/Mayuri-Chan/pyrofork.git
synced 2026-01-01 13:14:52 +00:00
fix RawUpdateHandler
This commit is contained in:
parent
54e7539865
commit
40d7ed2b8e
1 changed files with 3 additions and 3 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in a new issue