Would appreciate opinion / advice / answer.
Writing a bot, where there will be a need for conversation + menu navigation. Meaning, I will need to handle states and available-at-the-moment list of commands. The question is, how is that "optimally" done?
Additional decorator that checks user's state before passing args to the func? Handlers inside handlers?
If there is a decent resource for that - many thanks. Please don't give me official site though. :D
depends on what you'll have there but generally a small state machine is a good way of doing that
How is the state machine generally built? And is there a resource with good example / manual?
Обсуждают сегодня