Skip to content

Bug in Entities/InlineKeyboardButton.php (!empty()) #670

Closed
@demon-ru

Description

@demon-ru

try this code: new InlineKeyboard([['text'=>'0', 'callback_data' => '0']])
Is it legal?

It is not working. The reason is in Entities/InlineKeyboardButton.php line 64:
if (!empty($this->getProperty($param))) {

Will it be better to use isset()?

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions