From 289b40b532e89960d9a3d73f23aebd3b06e86cf7 Mon Sep 17 00:00:00 2001 From: mihalin Date: Fri, 10 Sep 2021 01:20:40 +0300 Subject: [PATCH] test --- server/server.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/server/server.py b/server/server.py index fe7e203..4459fd8 100644 --- a/server/server.py +++ b/server/server.py @@ -28,7 +28,7 @@ async def register_token(bot: Bot) -> bool: logger.info(f"register token {bot.name}") a_bot = AioBot(bot.token) res = await a_bot.set_webhook(url_for_bot(bot)) - await a_bot.session.close() + del a_bot return res @@ -40,8 +40,8 @@ async def unregister_token(token: str): """ logger.info(f"unregister token {token}") bot = AioBot(token) - await bot.session.close() await bot.delete_webhook() + del bot async def cmd_start(message, *args, **kwargs):