diff --git a/README.md b/README.md index 7bfc23f..e1f9b92 100644 --- a/README.md +++ b/README.md @@ -16,12 +16,12 @@ This bot is designed to simplify the moderation and management of Telegram group ## Installation -- Required:python3.x, poetry/pip +- Required: python3.x, poetry/pip - Clone this repo - 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 deleted file mode 100644 index 0155d7a..0000000 --- a/aiogram-loop.patch +++ /dev/null @@ -1,20 +0,0 @@ ---- 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,