From 4118a30c15451702de9164e1fc90663335ae1cdc Mon Sep 17 00:00:00 2001 From: qvvonk Date: Thu, 25 Sep 2025 14:31:24 +0300 Subject: [PATCH 1/4] fix --- aiogram/dispatcher/dispatcher.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/aiogram/dispatcher/dispatcher.py b/aiogram/dispatcher/dispatcher.py index 63fd33c2..3bbd0878 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 @@ -554,9 +555,7 @@ class Dispatcher(Router): ) workflow_data = { - "dispatcher": self, "bots": bots, - **self.workflow_data, **kwargs, } if "bot" in workflow_data: From 883a3b938146a75a2cd1cd9144acc6a787d2f88d Mon Sep 17 00:00:00 2001 From: qvvonk Date: Thu, 25 Sep 2025 14:54:56 +0300 Subject: [PATCH 2/4] changlog --- 1724.bugfix.rst | 1 + 1 file changed, 1 insertion(+) create mode 100644 1724.bugfix.rst diff --git a/1724.bugfix.rst b/1724.bugfix.rst new file mode 100644 index 00000000..fc820c53 --- /dev/null +++ b/1724.bugfix.rst @@ -0,0 +1 @@ +Added dispatcher key to event data in dispatcher.feed_update, removed redundant unpacking of workflow_data in dispatcher.start_polling. From ef3aee58ee16bb9179a536b16fb5e460abe91b21 Mon Sep 17 00:00:00 2001 From: qvvonk Date: Thu, 25 Sep 2025 14:55:51 +0300 Subject: [PATCH 3/4] typos --- 1724.bugfix.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/1724.bugfix.rst b/1724.bugfix.rst index fc820c53..7f589d3f 100644 --- a/1724.bugfix.rst +++ b/1724.bugfix.rst @@ -1 +1 @@ -Added dispatcher key to event data in dispatcher.feed_update, removed redundant unpacking of workflow_data in dispatcher.start_polling. +Added dispatcher key to event data in `Dispatcher.feed_update`, removed redundant unpacking of `workflow_data` in `Dispatcher.start_polling`. From 663338bafa9487ed60995aa4ee214567397e33f8 Mon Sep 17 00:00:00 2001 From: qvvonk Date: Thu, 25 Sep 2025 14:58:35 +0300 Subject: [PATCH 4/4] changelog moved to `CHANGED` dir --- 1724.bugfix.rst => CHANGES/1724.bugfix.rst | 0 1 file changed, 0 insertions(+), 0 deletions(-) rename 1724.bugfix.rst => CHANGES/1724.bugfix.rst (100%) diff --git a/1724.bugfix.rst b/CHANGES/1724.bugfix.rst similarity index 100% rename from 1724.bugfix.rst rename to CHANGES/1724.bugfix.rst