diff --git a/aiogram/dispatcher/dispatcher.py b/aiogram/dispatcher/dispatcher.py index fa848547..f2beeac6 100644 --- a/aiogram/dispatcher/dispatcher.py +++ b/aiogram/dispatcher/dispatcher.py @@ -393,10 +393,10 @@ class Dispatcher(Router): ) await asyncio.gather(*coro_list) finally: - for bot in bots: # Close sessions - await bot.session.close() loggers.dispatcher.info("Polling stopped") await self.emit_shutdown(**workflow_data) + for bot in bots: # Close sessions + await bot.session.close() def run_polling( self,