K
K
kuzubina2020-05-21 12:17:30
Node.js
kuzubina, 2020-05-21 12:17:30

Save user input after certain telegram bot message?

Hello!
You need to ask a few questions to the client through the bot and save their answers.
How can user input be saved after certain telegram bot message? You can ask the user to start writing from a certain word and take a message from this word, but this is not very convenient.

Answer the question

In order to leave comments, you need to log in

2 answer(s)
N
nitrojs, 2020-05-21
@nitrojs

You are most likely talking about scenes . You can implement them yourself, or you can use additional modules , depending on which library you use to work with the telegram API. Their implementation is not complicated, but you still have to think through some kind of logic.
By the way, if you use the puregram library , then there is an additional @puregram/scenes module for it , which allows you to work with these scenes .

T
Timur Pokrovsky, 2020-05-21
@Makaroshka007

write to db

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question