TelegramBot / Api

Native PHP Wrapper for Telegram BOT API
MIT License
1.06k stars 324 forks source link

Update InlineKeyboardMarkup.php #400

Closed abramov-ks closed 1 year ago

abramov-ks commented 1 year ago

Using inline keyboard telegram make response with reply_markup: {inline_keyboard: [...]}. Message::fromResponse($response) generate error ArgumentCountError : Too few arguments to function TelegramBot\Api\Types\Inline\InlineKeyboardMarkup::__construct(), 0 passed in BaseType::fromResponse method at line $instance = new static() because it tries to generate InlineKeyboardMarkup class with empty constructor

bernard-ng commented 1 year ago

duplicate #398