Function edit_message_caption

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

Edits the message content caption. 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
  • caption - New message content caption; 0-getOption(“message_caption_length_max”) characters; pass null to remove caption
  • client_id - The client id to send the request to