Skip to content

Reply Keyboard Markup is error #1150

New issue

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

Open
owenzhang24 opened this issue Dec 4, 2024 · 0 comments
Open

Reply Keyboard Markup is error #1150

owenzhang24 opened this issue Dec 4, 2024 · 0 comments
Labels

Comments

@owenzhang24
Copy link

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

0b59b6bad41284570e5c367320d6fea

Error stacktrace (if any)

Reply Keyboard Markup is error

@owenzhang24 owenzhang24 added the bug label Dec 4, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant