Class EditMessageMediaMethod.

see
package Default

 Methods

create()

create(integer|string $chatId, integer $messageId, \TgBotApi\BotApiBase\Type\InputMedia\InputMediaType $media, array|null $data = null) : \TgBotApi\BotApiBase\Method\EditMessageMediaMethod
Static

Parameters

$chatId

integerstring

$messageId

integer

$media

\TgBotApi\BotApiBase\Type\InputMedia\InputMediaType

$data

arraynull

Exceptions

\TgBotApi\BotApiBase\Exception\BadArgumentException

Returns

\TgBotApi\BotApiBase\Method\EditMessageMediaMethod

createInline()

createInline(string $inlineMessageId, \TgBotApi\BotApiBase\Type\InputMedia\InputMediaType $media, array|null $data = null) : \TgBotApi\BotApiBase\Method\EditMessageMediaMethod
Static

Parameters

$inlineMessageId

string

$media

\TgBotApi\BotApiBase\Type\InputMedia\InputMediaType

$data

arraynull

Exceptions

\TgBotApi\BotApiBase\Exception\BadArgumentException

Returns

\TgBotApi\BotApiBase\Method\EditMessageMediaMethod

fill()

fill(array $data, array $forbidden = array()
Inherited

Parameters

$data

array

$forbidden

array

Exceptions

\TgBotApi\BotApiBase\Exception\BadArgumentException

 Properties

 

Required if inline_message_id is not specified.

$chatId : integer | string

Default

Unique identifier for the target chat or username of the target channel (in the format @channelusername).

 

Optional. Required if chat_id and message_id are not specified. Identifier of the inline message.

$inlineMessageId : string | null

Default

 

A JSON-serialized object for a new media content of the message.

$media : \TgBotApi\BotApiBase\Type\InputMedia\InputMediaType

Default

 

Optional. Required if inline_message_id is not specified. Identifier of the sent message.

$messageId : integer | null

Default

 

Optional. Additional interface options. A JSON-serialized object for an inline keyboard, custom reply keyboard, instructions to remove reply keyboard or to force a reply from the user.

$replyMarkup : \TgBotApi\BotApiBase\Type\InlineKeyboardMarkupType | \TgBotApi\BotApiBase\Type\ReplyKeyboardMarkupType | \TgBotApi\BotApiBase\Type\ReplyKeyboardRemoveType | \TgBotApi\BotApiBase\Type\ForceReplyType | null

Default