From d2694a4d3b9a39bb61690e4616d2649fe0cc15ff Mon Sep 17 00:00:00 2001 From: Alex Root Junior Date: Sun, 17 Sep 2017 02:16:40 +0300 Subject: [PATCH] Lost task factory setup in webhook executor. --- aiogram/utils/executor.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/aiogram/utils/executor.py b/aiogram/utils/executor.py index a49cc099..29f88666 100644 --- a/aiogram/utils/executor.py +++ b/aiogram/utils/executor.py @@ -66,6 +66,8 @@ def start_webhook(dispatcher, webhook_path, *, loop=None, skip_updates=None, on_ if loop is None: loop = asyncio.get_event_loop() + loop.set_task_factory(context.task_factory) + app = get_new_configured_app(dispatcher, webhook_path) app['_startup_callback'] = on_startup app['_shutdown_callback'] = on_shutdown