Use this method to edit captions of messages. On success, if the edited message is not an inline message, the edited Message is returned, otherwise True is returned.

see
package Default

 Methods

create()

create($chatId, \TgBotApi\BotApiBase\Method\int $messageId, array $data = null
Static

Parameters

$chatId

$messageId

$data

Exceptions

\TgBotApi\BotApiBase\Exception\BadArgumentException

createInline()

createInline(\TgBotApi\BotApiBase\Method\string $inlineMessageId, array $data = null
Static

Parameters

$inlineMessageId

$data

Exceptions

\TgBotApi\BotApiBase\Exception\BadArgumentException

fill()

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

Parameters

$data

array

$forbidden

array

Exceptions

\TgBotApi\BotApiBase\Exception\BadArgumentException

 Properties

 

Optional. Media caption (may also be used when resending photos by file_id), 0-1024 characters\.

$caption : string | null

Default

 

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

 

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

$messageId : integer | null

Default

 

Optional. Send Markdown or HTML, if you want Telegram apps to show bold, italic, fixed-width text or inline URLs in the media caption.

$parseMode : string | 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