edit_message_caption


Description:

public async Message edit_message_caption (int64 chat_id, int64 message_id, ReplyMarkup reply_markup, FormattedText caption, bool show_caption_above_media) throws TDLibError

Edits the message content caption. 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_be_edited to check whether the message can be edited

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

show_caption_above_media

Pass true to show the caption above the media; otherwise, the caption will be shown below the media. May be true only for animation, photo, and video messages