edit_message_media

Function edit_message_media 

Source
pub async fn edit_message_media(
    chat_id: i64,
    message_id: i64,
    reply_markup: Option<ReplyMarkup>,
    input_message_content: InputMessageContent,
    client_id: i32,
) -> Result<Message, Error>
Expand description

Edits the content of a message with an animation, an audio, a document, a photo or a video, including message caption. If only the caption needs to be edited, use editMessageCaption instead. The media can’t be edited if the message was set to self-destruct or to a self-destructing media. 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

§Arguments

  • chat_id - The chat the message belongs to
  • message_id - Identifier of the message
  • 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
  • client_id - The client id to send the request to