Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/dev-3.x' into dev-3.x
Browse files Browse the repository at this point in the history
  • Loading branch information
JrooTJunior committed Aug 13, 2023
2 parents 3facba2 + 0cec7d4 commit 577b44c
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
1 change: 1 addition & 0 deletions CHANGES/1264.doc.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Supplemented "Finite State Machine" section in Migration FAQ
7 changes: 7 additions & 0 deletions docs/migration_2_to_3.rst
Original file line number Diff line number Diff line change
Expand Up @@ -112,6 +112,13 @@ Finite State machine
- State filter will no more added to all handlers, you will need to specify state if you want
- Added possibility to change FSM strategy, for example if you want to control state
for each user in chat topics instead of user in chat you can specify it in the Dispatcher.
- Now :class:`aiogram.fsm.state.State` and :class:`aiogram.fsm.state.StateGroup` don't have helper
methods like :code:`.set()`, :code:`.next()`, etc.

Instead of this you should set states by passing them directly to
:class:`aiogram.fsm.context.FSMContext` (:ref:`Read more » <Finite State Machine>`)
- State proxy is deprecated, you should update the state data by calling
:code:`state.set_data(...)` and :code:`state.get_data()` respectively.


Sending Files
Expand Down

0 comments on commit 577b44c

Please sign in to comment.