Answer the question
In order to leave comments, you need to log in
How to determine the user's response to a specific bot message?
I'm not interested in a specific implementation in Go (although it would be nice), but in an approach.
The bot asks a question to the user, how to understand that the user answered exactly the question asked?
Remembering MessageID is not an option, because there can be many users, but as I understand it, it is not tied to a specific user.
In my current implementation, when a user answers a question, then in the update entity there is not a single identifier by which it can be understood that the user's input was specifically for a specific question.
Answer the question
In order to leave comments, you need to log in
Here I used a telegram financial bot the other day, there, before sending, for example, the transaction hash, you must press the "Send hash" button and then you enter what you want to specify. Accordingly, you can do the same, make a button after the question "Answer" and everything after it is considered an answer.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question