Interface EditMessageCaption

Edits the message content caption. Returns the edited message after the edit is completed on the server side. Request type for Tdjson#editMessageCaption.

interface EditMessageCaption {
    @type: "editMessageCaption";
    caption: FormattedText;
    chat_id: number;
    message_id: number;
    reply_markup: ReplyMarkup;
    show_caption_above_media?: boolean;
}

Properties

@type: "editMessageCaption"
caption: FormattedText

New message content caption; 0-getOption("message_caption_length_max") characters; pass null to remove caption.

chat_id: number

The chat the message belongs to.

message_id: number

Identifier of the message. Use messageProperties.can_be_edited to check whether the message can be edited.

reply_markup: ReplyMarkup

The new message reply markup; pass null if none; for bots only.

show_caption_above_media?: boolean

Pass true to show the caption above the media; otherwise, the caption will be shown below the media. May be true only for animation, photo, and video messages.