edit_message_media


Description:

public async Message edit_message_media (int64 chat_id, int64 message_id, ReplyMarkup reply_markup, InputMessageContent input_message_content) throws TDLibError

Edits the media content of a message, including message caption. If only the caption needs to be edited, use Client.edit_message_caption 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

Parameters:

chat_id

The chat the message belongs to

message_id

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

reply_markup

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

input_message_content

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