mirror of
https://github.com/aiogram/aiogram.git
synced 2026-04-08 16:37:47 +00:00
Remove redundant code
This commit is contained in:
parent
58c496537f
commit
2732dc279d
1 changed files with 0 additions and 9 deletions
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue