C
C
cimajo2016-12-25 18:45:56
In contact with
cimajo, 2016-12-25 18:45:56

How to make sure that the bot does not lose the “thread of the conversation”?

A bot is being developed. How to make the bot understand that it is talking to the same person and not a new one? For example, how to make such a conversation?
B: Hello, send me your number
C: 1951023
B: oh, it doesn't fit, try again
C: 112321
B: Now it does!
but in reality it turns out
B: Hello, send me your number
C: 112321
B: Sorry, I don’t understand this command

Answer the question

In order to leave comments, you need to log in

1 answer(s)
N
nllm, 2016-12-25
@cimajo

1. Store states in the database.
2. Store the user profile in the database.
The question has been asked many times. All the answers have been there for a long time
. How to implement a kind of session with a user when using a Telegram bot?

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question