java.lang.Object
it.tdlight.jni.TdApi.Object
it.tdlight.jni.TdApi.InputMessageContent
it.tdlight.jni.TdApi.InputMessageDocument
- Enclosing class:
- TdApi
A document message (general file).
-
Field Summary
Modifier and TypeFieldDescriptionDocument caption; pass null to use an empty caption; 0-GetOption("message_caption_length_max") characters.static final int
boolean
If true, automatic file type detection will be disabled and the document will always be sent as file.Document to be sent.Document thumbnail; pass null to skip thumbnail uploading. -
Constructor Summary
ConstructorDescriptionA document message (general file).InputMessageDocument
(TdApi.InputFile document, TdApi.InputThumbnail thumbnail, boolean disableContentTypeDetection, TdApi.FormattedText caption) A document message (general file).InputMessageDocument
(DataInput input) A document message (general file). -
Method Summary
Methods inherited from class it.tdlight.jni.TdApi.Object
serialize, toString
-
Field Details
-
document
Document to be sent. -
thumbnail
Document thumbnail; pass null to skip thumbnail uploading. -
disableContentTypeDetection
public boolean disableContentTypeDetectionIf true, automatic file type detection will be disabled and the document will always be sent as file. Always true for files sent to secret chats. -
CONSTRUCTOR
public static final int CONSTRUCTOR- See Also:
-
-
Constructor Details
-
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
- InputFile Document to be sent.thumbnail
- InputThumbnail Document thumbnail; pass null to skip thumbnail uploading.disableContentTypeDetection
- boolean If true, automatic file type detection will be disabled and the document will always be sent as file. Always true for files sent to secret chats.caption
- FormattedText Document caption; pass null to use an empty caption; 0-GetOption("message_caption_length_max") characters.
-
InputMessageDocument
A document message (general file).- Throws:
IOException
-
-
Method Details
-
getConstructor
public int getConstructor()- Specified by:
getConstructor
in classTdApi.Object
-
serialize
- Specified by:
serialize
in classTdApi.Object
- Throws:
IOException
-
equals
-
hashCode
public int hashCode()
-