From 81852cdda22f3d0d659a061a6dd0f61547b61aba Mon Sep 17 00:00:00 2001 From: Aryn <63111101+arynyklas@users.noreply.github.com> Date: Wed, 2 Aug 2023 18:10:25 +0600 Subject: [PATCH] Update dispatcher.py --- aiogram/dispatcher/dispatcher.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/aiogram/dispatcher/dispatcher.py b/aiogram/dispatcher/dispatcher.py index 2ae47407..58eeb1c8 100644 --- a/aiogram/dispatcher/dispatcher.py +++ b/aiogram/dispatcher/dispatcher.py @@ -546,7 +546,7 @@ class Dispatcher(Router): finally: loggers.dispatcher.info("Polling stopped") try: - await self.emit_shutdown(bot=bots[-1], **workflow_data) + await self.emit_shutdown(bots[-1], **workflow_data) finally: if close_bot_session: await asyncio.gather(*(bot.session.close() for bot in bots))