Interface EditMessageMedia

Edits the media content of a message, including message caption. If only the caption needs to be edited, use editMessageCaption instead. The type of message content in an album can't be changed with exception of replacing a photo with a video or vice versa. Returns the edited message after the edit is completed on the server side. Request type for Tdjson#editMessageMedia.

interface EditMessageMedia {
    @type: "editMessageMedia";
    chat_id: number;
    input_message_content: InputMessageContent;
    message_id: number;
    reply_markup: ReplyMarkup;
}

Properties

@type: "editMessageMedia"
chat_id: number

The chat the message belongs to.

input_message_content: InputMessageContent

New content of the message. Must be one of the following types: inputMessageAnimation, inputMessageAudio, inputMessageDocument, inputMessagePhoto or inputMessageVideo.

message_id: number

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

reply_markup: ReplyMarkup

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