Skip to content

editEphemeralMessageCaption

Function · TDLib 1.8.67 · d1085f9c

Edits the caption and reply markup of an ephemeral message sent by the bot; for bots only

editEphemeralMessageCaption(
  chat_id: int53,
  receiver_user_id: int53,
  ephemeral_message_id: int32,
  reply_markup: ReplyMarkup,
  caption: FormattedText,
  show_caption_above_media: Bool
) → Ok

chat_id

int53

The chat the message belongs to

receiver_user_id

int53

Identifier of the user who received the message

ephemeral_message_id

int32

Identifier of the ephemeral message

reply_markup

ReplyMarkup

The new message reply markup; pass null if none

caption

FormattedText

New message content caption; pass null to remove caption; 0-getOption("message_caption_length_max") characters

show_caption_above_media

Bool

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