mirror of
https://github.com/aiogram/aiogram.git
synced 2025-12-09 17:33:44 +00:00
Lost task factory setup in webhook executor.
This commit is contained in:
parent
a030be2d15
commit
d2694a4d3b
1 changed files with 2 additions and 0 deletions
|
|
@ -66,6 +66,8 @@ def start_webhook(dispatcher, webhook_path, *, loop=None, skip_updates=None, on_
|
||||||
if loop is None:
|
if loop is None:
|
||||||
loop = asyncio.get_event_loop()
|
loop = asyncio.get_event_loop()
|
||||||
|
|
||||||
|
loop.set_task_factory(context.task_factory)
|
||||||
|
|
||||||
app = get_new_configured_app(dispatcher, webhook_path)
|
app = get_new_configured_app(dispatcher, webhook_path)
|
||||||
app['_startup_callback'] = on_startup
|
app['_startup_callback'] = on_startup
|
||||||
app['_shutdown_callback'] = on_shutdown
|
app['_shutdown_callback'] = on_shutdown
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue