mirror of
https://github.com/aiogram/aiogram.git
synced 2026-04-08 16:37:47 +00:00
Migration FAQ supplement (Finite State Machine) (#1264)
* Updated Migration FAQ > Finite State Machine * Fixed typos, added changelog * Fixed typo x2
This commit is contained in:
parent
ac124f5b08
commit
0cec7d4933
2 changed files with 8 additions and 0 deletions
1
CHANGES/1264.doc.rst
Normal file
1
CHANGES/1264.doc.rst
Normal file
|
|
@ -0,0 +1 @@
|
||||||
|
Supplemented "Finite State Machine" section in Migration FAQ
|
||||||
|
|
@ -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
|
- 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
|
- 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.
|
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
|
Sending Files
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue