Skip to content
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

Object of class TelegramBot\Api\Types\Inline\InlineKeyboardMarkup could not be converted to int #397

Open
luxueqi1234 opened this issue Mar 7, 2023 · 5 comments

Comments

@luxueqi1234
Copy link

image
i only try a test

@amu1433
Copy link

amu1433 commented Mar 20, 2023

I some question , i need help

@luxueqi1234
Copy link
Author

lost a param
$bot->sendmessage($chatId,$messageText, null, false, null, null,$keyboard)

@luxueqi1234
Copy link
Author

I some question , i need help

add a null in front of $keyboard

@bernard-ng
Copy link
Contributor

@amu1433 Sorry for the late reply, did you solve your problem?

@BoShurik
Copy link
Contributor

For php ^8.0 you can use named arguments:

$api->sendMessage(
    chatId: $update->getMessage()->getChat()->getId(),
    text: $text,
    replyMarkup: new InlineKeyboardMarkup(/**/),
);

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants