public static class TdApi.InputMessageDocument extends TdApi.InputMessageContent
| Modifier and Type | Field and Description |
|---|---|
TdApi.FormattedText |
caption
Document caption; pass null to use an empty caption; 0-getOption("message_caption_length_max") characters.
|
static int |
CONSTRUCTOR
Identifier uniquely determining type of the object.
|
boolean |
disableContentTypeDetection
Pass true to disable automatic file type detection and send the document as a file.
|
TdApi.InputFile |
document
Document to be sent.
|
TdApi.InputThumbnail |
thumbnail
Document thumbnail; pass null to skip thumbnail uploading.
|
| Constructor and Description |
|---|
InputMessageDocument()
A document message (general file).
|
InputMessageDocument(TdApi.InputFile document,
TdApi.InputThumbnail thumbnail,
boolean disableContentTypeDetection,
TdApi.FormattedText caption)
A document message (general file).
|
| Modifier and Type | Method and Description |
|---|---|
int |
getConstructor()
Returns an identifier uniquely determining type of the object.
|
toStringpublic TdApi.InputFile document
public TdApi.InputThumbnail thumbnail
public boolean disableContentTypeDetection
public TdApi.FormattedText caption
public static final int CONSTRUCTOR
public InputMessageDocument()
public InputMessageDocument(TdApi.InputFile document, TdApi.InputThumbnail thumbnail, boolean disableContentTypeDetection, TdApi.FormattedText caption)
document - Document 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.caption - Document caption; pass null to use an empty caption; 0-getOption("message_caption_length_max") characters.public int getConstructor()
TdApi.ObjectgetConstructor in class TdApi.Object