From e23839aa6c6bc9ebfa71886212554fcc21abea36 Mon Sep 17 00:00:00 2001 From: Alex Root Junior Date: Fri, 21 Apr 2023 00:16:17 +0300 Subject: [PATCH] Added changelog --- CHANGES/1161.feature.rst | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 CHANGES/1161.feature.rst diff --git a/CHANGES/1161.feature.rst b/CHANGES/1161.feature.rst new file mode 100644 index 00000000..819c697c --- /dev/null +++ b/CHANGES/1161.feature.rst @@ -0,0 +1,17 @@ +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_THREAD, + storage=..., # Any persistent storage + ) + +.. note:: + + If you have implemented you own storages you should extend record key generation + with new one attribute - `thread_id`