We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
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.1
3.9
No response
https://telegram-bot-sdk.com/docs/guides/keyboards/
Reply Keyboard Markup
$reply_markup = Keyboard::make() ->setResizeKeyboard(true) ->setOneTimeKeyboard(true) ->row([ Keyboard::button('1'), Keyboard::button('2'), Keyboard::button('3'), ]) ->row([ Keyboard::button('4'), Keyboard::button('5'), Keyboard::button('6'), ]) ->row([ Keyboard::button('7'), Keyboard::button('8'), Keyboard::button('9'), ]) ->row([ Keyboard::button('0'), ]);
change:
$reply_markup = Keyboard::make() ->setResizeKeyboard(true) ->setOneTimeKeyboard(true) ->row( Keyboard::button(['text' => '1']), Keyboard::button(['text' => '2']), Keyboard::button(['text' => '3']), ) ->row( Keyboard::button(['text' => '4']), Keyboard::button(['text' => '5']), Keyboard::button(['text' => '6']), ) ->row( Keyboard::button(['text' => '7']), Keyboard::button(['text' => '8']), Keyboard::button(['text' => '9']), ) ->row( Keyboard::button(['text' => '0']), );
other: why different
Reply Keyboard Markup is error
The text was updated successfully, but these errors were encountered:
No branches or pull requests
PHP version
8.1
irazasyed/telegram-bot-sdk version
3.9
Laravel version (if any)
No response
Code To Reproduce the bug
https://telegram-bot-sdk.com/docs/guides/keyboards/
Reply Keyboard Markup
$reply_markup = Keyboard::make()
->setResizeKeyboard(true)
->setOneTimeKeyboard(true)
->row([
Keyboard::button('1'),
Keyboard::button('2'),
Keyboard::button('3'),
])
->row([
Keyboard::button('4'),
Keyboard::button('5'),
Keyboard::button('6'),
])
->row([
Keyboard::button('7'),
Keyboard::button('8'),
Keyboard::button('9'),
])
->row([
Keyboard::button('0'),
]);
change:
$reply_markup = Keyboard::make()
->setResizeKeyboard(true)
->setOneTimeKeyboard(true)
->row(
Keyboard::button(['text' => '1']),
Keyboard::button(['text' => '2']),
Keyboard::button(['text' => '3']),
)
->row(
Keyboard::button(['text' => '4']),
Keyboard::button(['text' => '5']),
Keyboard::button(['text' => '6']),
)
->row(
Keyboard::button(['text' => '7']),
Keyboard::button(['text' => '8']),
Keyboard::button(['text' => '9']),
)
->row(
Keyboard::button(['text' => '0']),
);
other:
why different
Error stacktrace (if any)
Reply Keyboard Markup is error
The text was updated successfully, but these errors were encountered: