Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public function editMessageMedia(
- $chatId,
- $messageId,
- $media,
- $inlineMessageId = null,
- $replyMarkup = null
- ) {
- return Message::fromResponse($this->call('editMessageMedia'), [
- 'chat_id' => $chatId,
- 'message_id' => $messageId,
- 'inline_message_id' => $inlineMessageId,
- 'media' => $media,
- 'reply_markup' => is_null($replyMarkup) ? $replyMarkup : $replyMarkup->toJson(),
- ]);
- }
- /** Call a function **/
- $data['photo'] = 'https://www.investors.com/wp-content/uploads/2019/03/Podcast-spotlight.jpg';
- $photo = new InputMediaPhoto($data['photo']);
- $api->editMessageMedia(
- $data['chatId'],
- $data['messageId'],
- $photo,
- $data['inlineMessageId'] ?? null,
- $data['replyMarkup'] ?? null
- );
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement