A
A
artshelom2016-07-13 19:48:41
JavaScript
artshelom, 2016-07-13 19:48:41

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

4 answer(s)
V
Vitaly Stolyarov, 2016-07-14
@Ni55aN

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)

#
#algooptimize #bottize, 2016-07-13
@user004

dock https://core.telegram.org/bots/api
examples github, google
Levels - what is it?

N
nllm, 2016-07-13
@nllm

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.

D
deleted-dotCypress, 2016-08-04
@deleted-dotCypress

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 question

Ask a Question

731 491 924 answers to any question