Package org.drinkless.tdlib

# Class TdApi.DraftMessage

java.lang.Object
org.drinkless.tdlib.TdApi.Object
org.drinkless.tdlib.TdApi.DraftMessage

Enclosing class:
  TdApi

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

- ## Field Summary

  Fields
  Modifier and Type
  Field
  Description
  `static final int`
  `CONSTRUCTOR`
  Identifier uniquely determining type of the object.
  `int`
  `date`
  Point in time (Unix timestamp) when the draft was created.
  `long`
  `effectId`
  Identifier of the effect to apply to the message when it is sent; 0 if none.
  `TdApi.InputMessageContent`
  `inputMessageText`
  Content of the message draft; must be of the type inputMessageText, inputMessageVideoNote, or inputMessageVoiceNote.
  `TdApi.InputMessageReplyTo`
  `replyTo`
  Information about the message to be replied; must be of the type inputMessageReplyToMessage; may be null if none.

- ## Constructor Summary

  Constructors
  Constructor
  Description
  `DraftMessage()`
  Contains information about a message draft.
  `DraftMessage(TdApi.InputMessageReplyTo replyTo, int date, TdApi.InputMessageContent inputMessageText, long effectId)`
  Contains information about a message draft.

- ## Method Summary

  Modifier and Type
  Method
  Description
  `int`
  `getConstructor()`
  Returns an identifier uniquely determining type of the object.

  ### Methods inherited from class org.drinkless.tdlib.TdApi.Object

  `toString`

  ### Methods inherited from class java.lang.Object

  `clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait`

- ## Field Details

  - ### replyTo

    @Nullable 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:
      - Constant Field Values

- ## 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