Class TdApi.EditQuickReplyMessage

Enclosing class:
TdApi

public static class TdApi.EditQuickReplyMessage extends TdApi.Function<TdApi.Ok>
Asynchronously edits the text, media or caption of a quick reply message. Use quickReplyMessage.canBeEdited to check whether a message can be edited. Text message can be edited only to a text message. The type of message content in an album can't be changed with exception of replacing a photo with a video or vice versa.

Returns Ok

  • Field Details

    • shortcutId

      public int shortcutId
      Unique identifier of the quick reply shortcut with the message.
    • messageId

      public long messageId
      Identifier of the message.
    • inputMessageContent

      public TdApi.InputMessageContent inputMessageContent
      New content of the message. Must be one of the following types: inputMessageText, inputMessageAnimation, inputMessageAudio, inputMessageDocument, inputMessagePhoto or inputMessageVideo.
    • CONSTRUCTOR

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

    • EditQuickReplyMessage

      public EditQuickReplyMessage()
      Default constructor for a function, which asynchronously edits the text, media or caption of a quick reply message. Use quickReplyMessage.canBeEdited to check whether a message can be edited. Text message can be edited only to a text message. The type of message content in an album can't be changed with exception of replacing a photo with a video or vice versa.

      Returns Ok

    • EditQuickReplyMessage

      public EditQuickReplyMessage(int shortcutId, long messageId, TdApi.InputMessageContent inputMessageContent)
      Creates a function, which asynchronously edits the text, media or caption of a quick reply message. Use quickReplyMessage.canBeEdited to check whether a message can be edited. Text message can be edited only to a text message. The type of message content in an album can't be changed with exception of replacing a photo with a video or vice versa.

      Returns Ok

      Parameters:
      shortcutId - Unique identifier of the quick reply shortcut with the message.
      messageId - Identifier of the message.
      inputMessageContent - New content of the message. Must be one of the following types: inputMessageText, inputMessageAnimation, inputMessageAudio, inputMessageDocument, inputMessagePhoto or inputMessageVideo.
  • 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