J
J
jehord2017-03-17 00:12:36
Messengers
jehord, 2017-03-17 00:12:36

How to update the buttons of new Inline Keyboards?

The documentation https://core.telegram.org/bots/2-0-intro#new-inlin... has a very interesting example using pagination buttons.
Please tell me how you can update these buttons, judging by the same documentation, you need to use the editMessageText method , but apparently you need to use it to update the buttons themselves by passing the inline_message_id parameter , but I couldn’t figure out how to get it either.
I would be very grateful for a banal example of the form:
1. Sent a command -> received a new inline keyboard
2. Pressed a button -> this button was updated (the text changed)

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Alexey, 2017-04-19
@lolobrigit

I figured out the inline_message_id parameter, you must specify if you use GetUpdates then callback_query id

{
  "ok": true,
  "result": [
    {
      "update_id": 12345678,
      "callback_query": {
        "id": "Вот этот код надо вставить в Inline_message_id",
        "from": {
              ......

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question