Class TdApi.EditEphemeralMessage

Enclosing class:
TdApi

public static class TdApi.EditEphemeralMessage extends TdApi.Function<TdApi.Ok>
Edits the text, caption or reply markup of an ephemeral message sent by the bot; for bots only.

Returns Ok

  • Field Details

    • chatId

      public long chatId
      The chat the message belongs to.
    • receiverUserId

      public long receiverUserId
      Identifier of the user who received the message.
    • ephemeralMessageId

      public int ephemeralMessageId
      Identifier of the ephemeral message.
    • replyMarkup

      public TdApi.ReplyMarkup replyMarkup
      The new message reply markup; pass null if none.
    • inputMessageContent

      public TdApi.InputMessageContent 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, inputMessageSticker, inputMessageVideo, inputMessageVideoNote, inputMessageVoiceNote.
    • CONSTRUCTOR

      public static final int CONSTRUCTOR
      Identifier uniquely determining type of the object.
      See Also:
  • Constructor Details

    • EditEphemeralMessage

      public EditEphemeralMessage()
      Default constructor for a function, which edits the text, caption or reply markup of an ephemeral message sent by the bot; for bots only.

      Returns Ok

    • EditEphemeralMessage

      public EditEphemeralMessage(long chatId, long receiverUserId, int ephemeralMessageId, TdApi.ReplyMarkup replyMarkup, TdApi.InputMessageContent inputMessageContent)
      Creates a function, which edits the text, caption or reply markup of an ephemeral message sent by the bot; for bots only.

      Returns Ok

      Parameters:
      chatId - The chat the message belongs to.
      receiverUserId - Identifier of the user who received the message.
      ephemeralMessageId - Identifier of the ephemeral message.
      replyMarkup - The new message reply markup; pass null if none.
      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, inputMessageSticker, inputMessageVideo, inputMessageVideoNote, inputMessageVoiceNote.
  • Method Details

    • getConstructor

      public int getConstructor()
      Description copied from class: TdApi.Object
      Returns an identifier uniquely determining type of the object.
      Specified by:
      getConstructor in class TdApi.Object
      Returns:
      this.CONSTRUCTOR