Skip to content

editEphemeralMessage

Function · TDLib 1.8.67 · d1085f9c

Edits the text, media, or reply markup of an ephemeral message sent by the bot; for bots only

editEphemeralMessage(
  chat_id: int53,
  receiver_user_id: int53,
  ephemeral_message_id: int32,
  reply_markup: ReplyMarkup,
  input_message_content: InputMessageContent
) → 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

input_message_content

InputMessageContent

New content of the message; pass null to edit only reply markup. Must be one of the following types: inputMessageText, inputMessageAnimation, inputMessageAudio, inputMessageDocument, inputMessagePhoto, inputMessageRichMessage, inputMessageSticker, inputMessageVideo, inputMessageVideoNote, inputMessageVoiceNote