Closed NPCDW closed 1 month ago
Thank you for your question.
Shouldn't it depend on the button itself? Or rather, on the action you want to do when a button is pressed?
Thanks for the quick response!
For example, after clicking on the "🧑🍼 个人信息" button, which function in functions::
should I execute, I didn't find that method for the interaction
Pleasure.
However, there are no existing functions for all cases. What you need to do is to capture the event and then handle the event with your bot logic and send the result on the chat.
I hope I have explained myself :D
Sorry I didn't express myself clearly.
this bot is someone else's, what I want to make is a telegram client and use your tdlib-rs-1.0.5 library, when the user clicks the button, which method of tdlib should I call to send the event triggered by the user
Hi,
If i understand clearly, you need to periodically check the messages in that chat and do something when apper a message generated by the user when clicking a button
you need to periodically check the messages in that chat and do something when apper a message generated by the user when clicking a button
I am making a telegram client, similar to trelegram x
, not a bot backend.
So after the user clicks the button, what should I do, what kind of messages should I send to the server, what methods should I call, in tdlib-rs
Sorry for my misunderstanding.
After some research i think this is the function that you need to use.
I'm not complitily sure because i never studied the whole tdlib and in particular the Inline Keyboards
are a topic never encounter.
During my research I found this link useful, maybe it can be useful for you too.
I hope that this function will solve your problem.
@Andreal2000 Thank you very much for your answer, it is correct.
It solved my problem, the get_callback_query_answer
method does operate Inline Keyboards
Here is a screenshot of the message and the json content of the message
What message should be sent when the user clicks the button in the reply markup message ?