core icon indicating copy to clipboard operation
core copied to clipboard

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

Open demon-ru opened this issue 9 years ago • 2 comments

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()?

demon-ru avatar Oct 08 '17 15:10 demon-ru

Is fixed and will be in the next release, thanks @demon-ru 🎉

noplanman avatar Oct 11 '17 09:10 noplanman

I have tested the fix and it solved the problem. Thanks.

demon-ru avatar Oct 11 '17 09:10 demon-ru