We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
8.2
3.13
I don't use it
I used the keyboard example from the documentation and it doesn't work.
$keyboard = [ ['7', '8', '9'], ['4', '5', '6'], ['1', '2', '3'], ['0'] ]; $reply_markup = $telegram->replyKeyboardMarkup([ 'keyboard' => $keyboard, 'resize_keyboard' => true, 'one_time_keyboard' => true ]); $response = $telegram->sendMessage([ 'chat_id' => 'CHAT_ID', 'text' => 'Hello World', 'reply_markup' => $reply_markup ]); $messageId = $response->getMessageId();
My script stops at the line
$reply_markup = $telegram->replyKeyboardMarkup([ 'keyboard' => $keyboard, 'resize_keyboard' => true, 'one_time_keyboard' => true ]);
if you comment out this line, then the script works fine.
No response
To continue using the sdk, I have to insert the keyboard in json format.
$telegram->sendMessage(['chat_id' => $chat_id, 'text' => $reply, 'reply_markup' => json_encode([ 'keyboard' => $keyboard, 'resize_keyboard' => true, 'one_time_keyboard' => true ])]);
The text was updated successfully, but these errors were encountered:
Same here. Was trying to set up the keyboard using the guidelines in the documentation, but got the message:
Method [replyKeyboardMarkup] does not exist.
Fix the bug, please.
Sorry, something went wrong.
No branches or pull requests
PHP version
8.2
Telegram Bot SDK version
3.13
Laravel version (if any)
I don't use it
What happened?
I used the keyboard example from the documentation and it doesn't work.
My script stops at the line
if you comment out this line, then the script works fine.
Code To Reproduce the bug
Error stacktrace (if any)
No response
Additional Context
No response
Possible Solution
To continue using the sdk, I have to insert the keyboard in json format.
The text was updated successfully, but these errors were encountered: