Package org.drinkless.tdlib
Class TdApi.InputMessageDocument
- java.lang.Object
-
- org.drinkless.tdlib.TdApi.Object
-
- org.drinkless.tdlib.TdApi.InputMessageContent
-
- org.drinkless.tdlib.TdApi.InputMessageDocument
-
- Enclosing class:
- TdApi
public static class TdApi.InputMessageDocument extends TdApi.InputMessageContent
A document message (general file).
-
-
Field Summary
Fields Modifier and Type Field Description TdApi.FormattedTextcaptionDocument caption; pass null to use an empty caption; 0-GetOption("message_caption_length_max") characters.static intCONSTRUCTORIdentifier uniquely determining type of the object.booleandisableContentTypeDetectionIf true, automatic file type detection will be disabled and the document will be always sent as file.TdApi.InputFiledocumentDocument to be sent.TdApi.InputThumbnailthumbnailDocument thumbnail; pass null to skip thumbnail uploading.
-
Constructor Summary
Constructors Constructor Description InputMessageDocument()A document message (general file).InputMessageDocument(TdApi.InputFile document, TdApi.InputThumbnail thumbnail, boolean disableContentTypeDetection, TdApi.FormattedText caption)A document message (general file).
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intgetConstructor()-
Methods inherited from class org.drinkless.tdlib.TdApi.Object
toString
-
-
-
-
Field Detail
-
document
public TdApi.InputFile document
Document to be sent.
-
thumbnail
public TdApi.InputThumbnail thumbnail
Document thumbnail; pass null to skip thumbnail uploading.
-
disableContentTypeDetection
public boolean disableContentTypeDetection
If true, automatic file type detection will be disabled and the document will be always sent as file. Always true for files sent to secret chats.
-
caption
public TdApi.FormattedText caption
Document caption; pass null to use an empty caption; 0-GetOption("message_caption_length_max") characters.
-
CONSTRUCTOR
public static final int CONSTRUCTOR
Identifier uniquely determining type of the object.- See Also:
- Constant Field Values
-
-
Constructor Detail
-
InputMessageDocument
public InputMessageDocument()
A document message (general file).
-
InputMessageDocument
public InputMessageDocument(TdApi.InputFile document, TdApi.InputThumbnail thumbnail, boolean disableContentTypeDetection, TdApi.FormattedText caption)
A document message (general file).- Parameters:
document- Document to be sent.thumbnail- Document thumbnail; pass null to skip thumbnail uploading.disableContentTypeDetection- If true, automatic file type detection will be disabled and the document will be always sent as file. Always true for files sent to secret chats.caption- Document caption; pass null to use an empty caption; 0-GetOption("message_caption_length_max") characters.
-
-
Method Detail
-
getConstructor
public int getConstructor()
- Specified by:
getConstructorin classTdApi.Object- Returns:
- this.CONSTRUCTOR
-
-