mirror of
https://github.com/eternnoir/pyTelegramBotAPI.git
synced 2023-08-10 21:12:57 +03:00
Update async_telebot.py
This commit is contained in:
parent
0759c8e081
commit
8d82b3d56b
@ -486,7 +486,6 @@ class AsyncTeleBot:
|
|||||||
handler_error = None
|
handler_error = None
|
||||||
data = {}
|
data = {}
|
||||||
skip_handlers = False
|
skip_handlers = False
|
||||||
params = []
|
|
||||||
|
|
||||||
if middlewares:
|
if middlewares:
|
||||||
for middleware in middlewares:
|
for middleware in middlewares:
|
||||||
@ -507,6 +506,7 @@ class AsyncTeleBot:
|
|||||||
if handlers and not(skip_handlers):
|
if handlers and not(skip_handlers):
|
||||||
try:
|
try:
|
||||||
for handler in handlers:
|
for handler in handlers:
|
||||||
|
params = []
|
||||||
process_update = await self._test_message_handler(handler, message)
|
process_update = await self._test_message_handler(handler, message)
|
||||||
if not process_update: continue
|
if not process_update: continue
|
||||||
for i in signature(handler['function']).parameters:
|
for i in signature(handler['function']).parameters:
|
||||||
|
Loading…
Reference in New Issue
Block a user