Function edit_quick_reply_message

Source
pub async fn edit_quick_reply_message(
    shortcut_id: i32,
    message_id: i64,
    input_message_content: InputMessageContent,
    client_id: i32,
) -> Result<(), Error>
Expand description

Asynchronously edits the text, media or caption of a quick reply message. Use quickReplyMessage.can_be_edited to check whether a message can be edited. Text message can be edited only to a text message. The type of message content in an album can’t be changed with exception of replacing a photo with a video or vice versa

§Arguments

  • shortcut_id - Unique identifier of the quick reply shortcut with the message
  • message_id - Identifier of the message
  • input_message_content - New content of the message. Must be one of the following types: inputMessageText, inputMessageAnimation, inputMessageAudio, inputMessageDocument, inputMessagePhoto or inputMessageVideo
  • client_id - The client id to send the request to