Planning a bot, and can't get a decision from web.

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

2 ответов

6 просмотров

depends on what you'll have there but generally a small state machine is a good way of doing that

Yegor- Автор вопроса
dotvhs
depends on what you'll have there but generally a ...

How is the state machine generally built? And is there a resource with good example / manual?

Похожие вопросы

Карта сайта