aiogram/docs/source/examples/finite_state_machine_example_2.rst

16 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-