diff --git a/aiogram/fsm/strategy.py b/aiogram/fsm/strategy.py index 2695d60e..9c14eeb2 100644 --- a/aiogram/fsm/strategy.py +++ b/aiogram/fsm/strategy.py @@ -7,7 +7,7 @@ class FSMStrategy(Enum): CHAT = auto() GLOBAL_USER = auto() USER_IN_TOPIC = auto() - + CHAT_TOPIC = auto() def apply_strategy( strategy: FSMStrategy, @@ -21,4 +21,6 @@ def apply_strategy( return user_id, user_id, None if strategy == FSMStrategy.USER_IN_TOPIC: return chat_id, user_id, thread_id + if strategy == FSMStrategy.CHAT_TOPIC: + return chat_id, None, thread_id return chat_id, user_id, None