From 9315ab596112b2c499bcdc6aa5eeaad365562051 Mon Sep 17 00:00:00 2001 From: RootShinobi <111008396+RootShinobi@users.noreply.github.com> Date: Fri, 14 Feb 2025 19:02:45 +0200 Subject: [PATCH] move dispatcher in kwargs --- 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 8b6987cb..187be2d3 100644 --- a/aiogram/dispatcher/dispatcher.py +++ b/aiogram/dispatcher/dispatcher.py @@ -162,6 +162,7 @@ class Dispatcher(Router): **self.workflow_data, **kwargs, "bot": bot, + "dispatcher": self, }, ) handled = response is not UNHANDLED @@ -515,7 +516,6 @@ class Dispatcher(Router): ) workflow_data = { - "dispatcher": self, "bots": bots, **self.workflow_data, **kwargs,