diff --git a/aiogram/utils/executor.py b/aiogram/utils/executor.py index ed8947eb..686bc7ea 100644 --- a/aiogram/utils/executor.py +++ b/aiogram/utils/executor.py @@ -39,6 +39,8 @@ async def _shutdown(dispatcher: Dispatcher, callback=None): await dispatcher.storage.close() await dispatcher.storage.wait_closed() + await dispatcher.bot.close() + async def _wh_shutdown(app): callback = app.get('_shutdown_callback', None)