1
0
mirror of https://github.com/eternnoir/pyTelegramBotAPI.git synced 2023-08-10 21:12:57 +03:00

Fix: do not call handler in one more task

This commit is contained in:
Badiboy
2022-09-17 23:17:07 +03:00
parent e7a96ec2ed
commit 52e09637c2
2 changed files with 28 additions and 13 deletions

View File

@@ -358,6 +358,16 @@ class AsyncTeleBot:
await asyncio.gather(*tasks)
async def _run_middlewares_and_handlers(self, message, handlers, middlewares, update_type):
"""
This method is made to run handlers and middlewares in queue.
:param message: received message (update part) to process with handlers and/or middlewares
:param handlers: all created handlers (not filtered)
:param middlewares: middlewares that should be executed (already filtered)
:param update_type: handler/update type (Update field name)
:return:
"""
handler_error = None
data = {}
skip_handlers = False