TelegramBot / Api

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

How can i use sendPhoto with reply_markup #339

Closed DanielWeiser closed 3 years ago

DanielWeiser commented 3 years ago

$keyboard = new InlineKeyboardMarkup( [ [ ['text' => 'Смотреть', 'url' => 'https://www.kinopoisk.ru'] ] ] );

$this->tgClient->sendPhoto( $update->getMessage()->getChat()->getId(), $film->getAttribute('poster_url'), $film->getAttribute('description'), 'html', null, null, null, null, $keyboard );

What's wrong?

DanielWeiser commented 3 years ago

$this->tgClient->sendPhoto( $update->getMessage()->getChat()->getId(), $film->getAttribute('poster_url'), $film->getAttribute('description'), null, $keyboard );

it's work