Hi people!!
I use this code in php to send messages:
use Longman\TelegramBot\Request;
use Longman\TelegramBot\Entities\InlineKeyboardMarkup;
$telegram = new Longman\TelegramBot\Telegram($bot_api_key, $bot_username);
$inline_keyboard = [
['text' => 'inline', 'switch_inline_query' => 'true'],
['text' => 'callback', 'callback_data' => 'identifier'],
['text' => 'open url', 'url' => 'https://github.com/akalongman/php-telegram-bot'],
];
$data = [
'chat_id' => $MyID,
'text' => 'Hello!!...',
//'reply_markup' => new InlineKeyboardMarkup(['inline_keyboard' => [$inline_keyboard]]),
];
echo 'OK';
Request::sendMessage($data);
But when I decompile the line "reply_markup" my code not working. What happens? Where is the error?
What version of the Bot are you using?
InlineKeyboardMarkup doesn't exist any more.
P.S. When filing an issue, please fill out the required fields, as that makes it a lot easier for us to help :+1:
@dorcu Have you updated your bot to the latest version (0.48.0)? Are you still having issues with this?
Yeahh! I change InlineKeyboardMarkup by InlineKeyboard and now it's working
Most helpful comment
Yeahh! I change InlineKeyboardMarkup by InlineKeyboard and now it's working