You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Getting null when trying to get reply markup of the message using getReplyMarkup
Expected result
Getting instance of InlineKeyboardMarkup, as documented in the source code
Steps to reproduce
Send message with InlineKeyboardMarkup passed to replyMarkup parameter, providing text and callback_data
Open any Telegram client application and click on created button
Capture callback event using $client->callbackQuery()
Try to get reply markup of the message using $query->getMessage()->getReplyMarkup()
The result of the following steps will be null.
I printed out the raw body and definitely sure that JSON that sent back to the server contains reply_markup field
The text was updated successfully, but these errors were encountered:
I have the same problem. But I use $messageData = $bot->sendMessage(..., $inline_keyboard); $messageData->getReplyMarkup(); // returns NULL
I don't know, what to do...
I've tried to check Types/Message.php and I added to static protected $map = [] new element 'reply_markup' => InlineKeyboardMarkup::class (I saw, that there are all the key=>value pairs from telegram api docs, but 'reply_markup' are not), but this just broke the bot :( I'm sure some developers stuck this problem too.
Problem
Getting
null
when trying to get reply markup of the message usinggetReplyMarkup
Expected result
Getting instance of
InlineKeyboardMarkup
, as documented in the source codeSteps to reproduce
InlineKeyboardMarkup
passed toreplyMarkup
parameter, providingtext
andcallback_data
$client->callbackQuery()
$query->getMessage()->getReplyMarkup()
The result of the following steps will be
null
.I printed out the raw body and definitely sure that JSON that sent back to the server contains
reply_markup
fieldThe text was updated successfully, but these errors were encountered: