class States(StatesGroup):
state1 = State()
...
@dp.message_handler(commands=['set_state1'], state=None)
def set_state1(message : types.Message):
# await States.state1.set()
await storage.set_state(
chat=message.chat.id,
user=message.from_user.id,
state=States.state1
)
await message.reply('state1 installed')
@dp.message_handler(state=States.state1)
def mess(message : types.Message):
await message.reply('Hello!')