M
M
Murat500052022-02-09 18:18:45
Python
Murat50005, 2022-02-09 18:18:45

Machines state aiogram. Is it possible to skip the second event and go directly to the third event?

Machines state aiogram. Is it possible to skip the second event and go directly to the third event?

class FSMPost(StatesGroup):
        post = State()
        buttons = State()
        time = State()

Answer the question

In order to leave comments, you need to log in

1 answer(s)
D
Daniil Shevkunov, 2022-02-09
@Murat50005

explicitly set the state (not the event): await
FSMPost.time.set()

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question