Class TdApi.InputDocument

java.lang.Object
org.drinkless.tdlib.TdApi.Object
org.drinkless.tdlib.TdApi.InputDocument
Enclosing class:
TdApi

public static class TdApi.InputDocument extends TdApi.Object
A document (general file) to be sent.
  • Field Details

    • document

      public TdApi.InputFile document
      File to be sent.
    • thumbnail

      public TdApi.InputThumbnail thumbnail
      Document thumbnail; pass null to skip thumbnail uploading.
    • disableContentTypeDetection

      public boolean disableContentTypeDetection
      Pass true to disable automatic file type detection and send the document as a file. Always true for files sent to secret chats.
    • CONSTRUCTOR

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

    • InputDocument

      public InputDocument()
      A document (general file) to be sent.
    • InputDocument

      public InputDocument(TdApi.InputFile document, TdApi.InputThumbnail thumbnail, boolean disableContentTypeDetection)
      A document (general file) to be sent.
      Parameters:
      document - File to be sent.
      thumbnail - Document thumbnail; pass null to skip thumbnail uploading.
      disableContentTypeDetection - Pass true to disable automatic file type detection and send the document as a file. Always true for files sent to secret chats.
  • 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