mirror of
https://github.com/aiogram/aiogram.git
synced 2026-04-08 16:37:47 +00:00
17 lines
632 B
ReStructuredText
17 lines
632 B
ReStructuredText
|
|
.. Autogenerated file at 2018-09-08 02:07:37.580949
|
||
|
|
|
||
|
|
==============================
|
||
|
|
Finite state machine example 2
|
||
|
|
==============================
|
||
|
|
|
||
|
|
This example is equals with 'finite_state_machine_example.py' but with FSM Middleware
|
||
|
|
Note that FSM Middleware implements the more simple methods for working with storage.
|
||
|
|
With that middleware all data from storage will be loaded before event will be processed
|
||
|
|
and data will be stored after processing the event.
|
||
|
|
|
||
|
|
.. literalinclude:: ../../../examples/finite_state_machine_example_2.py
|
||
|
|
:caption: finite_state_machine_example_2.py
|
||
|
|
:language: python
|
||
|
|
:linenos:
|
||
|
|
:lines: 9-
|