From 2732dc279d86c1459fafb8b558a987fbe58ec2be Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C5=81ukasz=20Tshipenchko?= Date: Mon, 2 Jan 2023 19:40:05 +0600 Subject: [PATCH] Remove redundant code --- examples/webhook.py | 9 --------- 1 file changed, 9 deletions(-) diff --git a/examples/webhook.py b/examples/webhook.py index 09366072..6fbe7024 100644 --- a/examples/webhook.py +++ b/examples/webhook.py @@ -47,11 +47,6 @@ async def on_shutdown(bot: Bot, dispatcher: Dispatcher): # Remove webhook (not acceptable in some cases) await bot.delete_webhook() - # Close DB connection (if used) - await dispatcher.storage.close() - # Close bot session - await bot.session.close() - logging.warning("Bye!") @@ -63,10 +58,6 @@ def main(): dispatcher.include_router(router) app = Application() - app["bot"] = bot - - # Skip updates - # bot.delete_webhook() SimpleRequestHandler( dispatcher=dispatcher,