public static class TdApi.InputMessageDocument extends TdApi.InputMessageContent
TdApi.InputMessageContent.Constructors
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
If true, automatic file type detection will be disabled and the document will be always sent as 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() |
toString
public 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
- 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.public int getConstructor()
getConstructor
in class TdApi.InputMessageContent