mirror of
https://github.com/aiogram/aiogram.git
synced 2026-04-08 16:37:47 +00:00
17 lines
433 B
ReStructuredText
17 lines
433 B
ReStructuredText
Added support for FSM in Forum topics.
|
|
|
|
The strategy can be changed in dispatcher:
|
|
|
|
.. code-block:: python
|
|
|
|
from aiogram.fsm.strategy import FSMStrategy
|
|
...
|
|
dispatcher = Dispatcher(
|
|
fsm_strategy=FSMStrategy.USER_IN_TOPIC,
|
|
storage=..., # Any persistent storage
|
|
)
|
|
|
|
.. note::
|
|
|
|
If you have implemented you own storages you should extend record key generation
|
|
with new one attribute - `thread_id`
|