diff --git a/README.md b/README.md index a7e16ab..7bfc23f 100644 --- a/README.md +++ b/README.md @@ -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 | diff --git a/aiogram-loop.patch b/aiogram-loop.patch new file mode 100644 index 0000000..0155d7a --- /dev/null +++ b/aiogram-loop.patch @@ -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,