Add aiogram-loop patch
This commit is contained in:
parent
57c11806ec
commit
ef8b5080e3
|
@ -21,7 +21,7 @@ This bot is designed to simplify the moderation and management of Telegram group
|
|||
- Telegram API Service on port 5326
|
||||
- Move the .env.dist text template to .env and configure him
|
||||
- First start use `!reload` for parsing members and permissions
|
||||
|
||||
- Optional: Patch Aiogram if you need a scheduled update user data databases(shoud using)
|
||||
## Configuration .env
|
||||
|
||||
| environment variables | description |
|
||||
|
|
|
@ -0,0 +1,20 @@
|
|||
--- executor.py 2022-10-12 22:22:11.820907568 +0300
|
||||
+++ executor.py.1 2022-10-12 22:23:26.660883642 +0300
|
||||
@@ -105,7 +105,7 @@
|
||||
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 @@
|
||||
: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,
|
Reference in New Issue