K
K
Kirill Gorelov2020-04-25 20:27:12
PHP
Kirill Gorelov, 2020-04-25 20:27:12

Telegram bot change slide through inline buttons?

Hello guys, I have a question.

There is a telegram bot that shows content through the "left" and "right" buttons, but at the same time, a new message is not sent, and the old content is replaced with a new one. I don't understand how to do the same.
I use the following library https://github.com/irazasyed/telegram-bot-sdk
If this cannot be done in that library, then at least briefly explain how this was done using an example.
Or can you recommend another library.5ea472cde67c3601431034.png

Answer the question

In order to leave comments, you need to log in

1 answer(s)
K
kafkiansky, 2020-04-27
@Kirill-Gorelov

https://github.com/irazasyed/telegram-bot-sdk/blob...
https://github.com/irazasyed/telegram-bot-sdk/blob...

$this->api->editMessageText([
       'chat_id' => $chatId,
       'message_id' => $messageId,
       'text' => $text,
       'parse_mode' => $parseMode,
       'reply_markup' => $replyMarkup ?: Keyboard::hide(),
]);

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question