TelegramBot / Api

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

Call to a member function toJson() on bool #399

Open Traineratwot opened 1 year ago

Traineratwot commented 1 year ago
Fatal error: Uncaught Error: Call to a member function toJson() on bool in /var/www/marketplaces/data/www/mk.massive.ru/vendor/telegram-bot/api/src/BotApi.php:354

replace this https://github.com/TelegramBot/Api/blob/7a534219842ad59835eb89909ca58f8b8e3223a0/src/BotApi.php#L354 on

            'reply_markup' => empty($replyMarkup) ? null : $replyMarkup->toJson(),
bernard-ng commented 1 year ago

@Traineratwot Hi, you could show your call to this function to give us more context ?