move dispatcher in kwargs

This commit is contained in:
RootShinobi 2025-02-14 19:02:45 +02:00 committed by GitHub
parent 6e81294685
commit 9315ab5961
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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,