This commit is contained in:
Egor 2026-04-04 17:10:09 +00:00 committed by GitHub
commit 7d1b2196d7
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 2 additions and 2 deletions

1
CHANGES/1724.bugfix.rst Normal file
View file

@ -0,0 +1 @@
Added dispatcher key to event data in `Dispatcher.feed_update`, removed redundant unpacking of `workflow_data` in `Dispatcher.start_polling`.

View file

@ -168,6 +168,7 @@ class Dispatcher(Router):
**self.workflow_data,
**kwargs,
"bot": bot,
"dispatcher": self,
},
)
handled = response is not UNHANDLED
@ -584,9 +585,7 @@ class Dispatcher(Router):
)
workflow_data = {
"dispatcher": self,
"bots": bots,
**self.workflow_data,
**kwargs,
}
if "bot" in workflow_data: