Open
Description
PHP version
8.1
irazasyed/telegram-bot-sdk version
3.15
Laravel version (if any)
No response
Code To Reproduce the bug
$reply_markup = Keyboard::make()->inline();
$reply_markup->row([Keyboard::inlineButton(['text' => 'Level А', 'callback_data' => 'A'])]);
$reply_markup->row([Keyboard::inlineButton(['text' => 'Level B', 'callback_data' => 'B'])]);
$reply_markup->row([Keyboard::inlineButton(['text' => 'Level C', 'callback_data' => 'C'])]);
$reply_markup2 = Keyboard::make()
->inline();
$reply_markup2->row([Keyboard::inlineButton(['text' => 'NEW Level А', 'callback_data' => 'NEW A'])]);
$res = Telegram::sendMessage(
[
'chat_id' => $user->telegram_id,
'text' => 'test',
'reply_markup' => $reply_markup
]
);
$v = \Telegram\Bot\Laravel\Facades\Telegram::editMessageReplyMarkup([
'chat_id' => $user->telegram_id,
'message_id' => $res->messageId,
'reply_markup' => $reply_markup2,
]);
Error stacktrace (if any)
The method stopped working - when you try to change the keyboard, it just deletes it and that's it.