Answer the question
In order to leave comments, you need to log in
Telegram API Bot. How to clear callback_query?
I am getting acquainted with the creation of a chat bot in telegrams (I use PHP) and this situation arose. For example, we send a question to the user and provide 2 buttons (screen):
That is, after the answer, the user can click on these buttons as many times as he likes, I get answers in the callback_query (the bot works on webhooks), can it somehow be cleared after the answer? Or does all this logic need to be thought out on the server side? What is not very clear is the essence of the work ..
Answer the question
In order to leave comments, you need to log in
when answering, add the message_id parameter with the id of the first message. then it will be edited (the text will be replaced instead of the original one) and the user will not be able to click anymore.
but if there is something important, then it is better to block on the server, otherwise, until the first request is completed, the user can click several times, that is, several requests can still come.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question