You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/widgets/passing_data/index.rst
+2-2Lines changed: 2 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -11,7 +11,7 @@ You have access to the following dynamic data:
11
11
* ``start_data`` - data that was passed when the current dialog was started. These data is stored in the aiogram FSM storage.
12
12
* ``dialog_data`` - you can use this dict to store dialog-related data. It will be accessible at all windows of current dialog. These data is stored in the aiogram FSM storage.
13
13
14
-
In addition you can specify getter-functions for dialog and window.
14
+
In addition you can specify getter-functions for ``Dialog``, ``Window`` or globally in ``setup_dialogs``.
15
15
Getter-function has to return a dictionary.
16
16
17
17
Library collects all the data above into one dictionary object and passes this object to widgets.
@@ -28,7 +28,7 @@ Result:
28
28
29
29
.. image:: /resources/passing_data_example.png
30
30
31
-
In event handlers you don't have access to that dictionary, but you can acess ``event``, ``middleware_data``, ``start_data``, ``dialog_data`` via dialog_manager:
31
+
In event handlers you don't have access to that dictionary, but you can access ``event``, ``middleware_data``, ``start_data``, ``dialog_data`` via dialog_manager:
0 commit comments