Inline buttons for telegram bot

Hi all. I’m trying to figure out inline buttons (menu) for a telegram bot. I couldn’t find an implementation from any author. Maybe I didn’t search well enough. I could only call these buttons myself, but I couldn’t get a reaction to pressing them. Here’s a minimalistic way to send a message with an inline button.

:global botUrl "https://api.telegram.org/bot5555555555:xxxxxxxxxxxxxxxxxxxxxxx"
:local chatId xxxxxxxxxx
:local jsonData "{\"chat_id\":$chatId,\"text\":\"Test buttons\",\"reply_markup\":{\"inline_keyboard\":[[{\"text\":\"Button1\",\"callback_data\":\"btn1\"}]]}}"
:put "Serialized JSON: $jsonData"
:local url ($botUrl . "/sendMessage")
:local result [/tool fetch url=$url mode=https http-method=post http-header-field="Content-Type: application/json" http-data=$jsonData output=user as-value]
:put "Result: $($result->"data")"

My verification algorithm. I write one message in the telegram chat, for example, “1111111”, check in the browser like https://api.telegram.org/bot5555555555:xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx/getUpdates
And I see one message there. Then I run the script with sending an inline button. The button appears. I check the browser, there is only one message “1111111” Then I click on the inline button and check the browser again. There is also only one message “1111111” with the same ID. After that I write another message in the chat “22222222” and check the browser. There are two messages “1111111” and “2222222” with alternate IDs. That is, “message_id 7636” and “message_id 7637”, or “update_id 65165703” and “update_id 65165704”
It seems that the button is not being pressed or I am not correctly writing the actions for it, since it does not get into “/getUpdates”. I have not worked with inline buttons before and honestly I do not know, maybe I am sending/checking something incorrectly. But in the Telegram API they write that everything is checked by the same “/getUpdates”. Has anyone set up work with inline buttons?

It’s weird, but I changed the bot, inserted a new token and everything worked.

Look here: https://forummikrotik.ru/viewtopic.php?t=13853