Class TdApi.DraftMessageContentText

Enclosing class:
TdApi

public static class TdApi.DraftMessageContentText extends TdApi.DraftMessageContent
A text message draft.
  • Field Details

    • text

      public TdApi.FormattedText text
      Formatted text to be saved as a draft; 0-getOption("message_text_length_max") characters.
    • linkPreviewOptions

      public TdApi.LinkPreviewOptions linkPreviewOptions
      Options to be used for generation of a link preview; may be null if none; pass null to use default link preview options.
    • CONSTRUCTOR

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

    • DraftMessageContentText

      public DraftMessageContentText()
      A text message draft.
    • DraftMessageContentText

      public DraftMessageContentText(TdApi.FormattedText text, TdApi.LinkPreviewOptions linkPreviewOptions)
      A text message draft.
      Parameters:
      text - Formatted text to be saved as a draft; 0-getOption("message_text_length_max") characters.
      linkPreviewOptions - Options to be used for generation of a link preview; may be null if none; pass null to use default link preview options.
  • 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