Answer the question
In order to leave comments, you need to log in
How to make levels in telegram-bot on node js??
Hello.
How can I make levels on the bot?
It is desirable with examples and the documentation where it is possible to esteem about it?
Answer the question
In order to leave comments, you need to log in
A typical state machine:
- Attach templates for listening to messages
for each state - For each user, remember the current state
- Start listening from the root state
- When the corresponding message is received, go to the desired state (or stay in the current one)
dock https://core.telegram.org/bots/api
examples github, google
Levels - what is it?
Fix the current state of the user in the database (in which menu he is), based on this, display menu items. That's all the levels.
I think you will be interested: https://github.com/telegraf/telegraf-flow
There is a minimum of documentation, in fact a lightweight FSM with state saving.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question