mirror of
https://github.com/aiogram/aiogram.git
synced 2026-04-08 16:37:47 +00:00
fix: pass loop to aiohttp
This commit is contained in:
parent
763efb7763
commit
a7e0ce2971
1 changed files with 3 additions and 1 deletions
|
|
@ -105,7 +105,7 @@ def start_webhook(dispatcher, webhook_path, *, loop=None, skip_updates=None,
|
|||
check_ip=check_ip,
|
||||
retry_after=retry_after,
|
||||
route_name=route_name)
|
||||
executor.run_app(**kwargs)
|
||||
executor.run_app(loop=loop, **kwargs)
|
||||
|
||||
|
||||
def start(dispatcher, future, *, loop=None, skip_updates=None,
|
||||
|
|
@ -303,6 +303,8 @@ class Executor:
|
|||
:return:
|
||||
"""
|
||||
self.set_webhook(webhook_path=webhook_path, request_handler=request_handler, route_name=route_name)
|
||||
if "loop" not in kwargs:
|
||||
kwargs["loop"] = self.loop
|
||||
self.run_app(**kwargs)
|
||||
|
||||
def start_polling(self, reset_webhook=None, timeout=20, relax=0.1, fast=True,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue