Answer the question
In order to leave comments, you need to log in
How to send several variables in telegram via callback_data?
Hello.
I send messages to users about a new comment to the chat bot from the site, and attach a button with callback_data="view_154" to the bottom, where 154 is the comment id. It was required to additionally send some more variables with values. I plan to do this, for example, like this:
callback_data="view_154;task_25;user_96", and then parse this information on the server.
Am I doing it right, or is there a better way?
Answer the question
In order to leave comments, you need to log in
Make a unique key like UUID, for example, and store all parameters on the server. So it will be possible to control the one-time operation
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question