Class TdApi.DraftMessage

java.lang.Object
dev.voroby.springframework.telegram.client.TdApi.Object
dev.voroby.springframework.telegram.client.TdApi.DraftMessage
Enclosing class:
TdApi

public static class TdApi.DraftMessage extends TdApi.Object
Contains information about a message draft.
  • Field Details

    • replyTo

      public TdApi.InputMessageReplyTo replyTo
      Information about the message to be replied; must be of the type inputMessageReplyToMessage; may be null if none.
    • date

      public int date
      Point in time (Unix timestamp) when the draft was created.
    • inputMessageText

      public TdApi.InputMessageContent inputMessageText
      Content of the message draft; must be of the type inputMessageText, inputMessageVideoNote, or inputMessageVoiceNote.
    • effectId

      public long effectId
      Identifier of the effect to apply to the message when it is sent; 0 if none.
    • CONSTRUCTOR

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

    • DraftMessage

      public DraftMessage()
      Contains information about a message draft.
    • DraftMessage

      public DraftMessage(TdApi.InputMessageReplyTo replyTo, int date, TdApi.InputMessageContent inputMessageText, long effectId)
      Contains information about a message draft.
      Parameters:
      replyTo - Information about the message to be replied; must be of the type inputMessageReplyToMessage; may be null if none.
      date - Point in time (Unix timestamp) when the draft was created.
      inputMessageText - Content of the message draft; must be of the type inputMessageText, inputMessageVideoNote, or inputMessageVoiceNote.
      effectId - Identifier of the effect to apply to the message when it is sent; 0 if none.
  • 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