public static class TdApi.InputMessageText extends TdApi.InputMessageContent
| Modifier and Type | Field and Description |
|---|---|
boolean |
clearDraft
True, if a chat message draft must be deleted.
|
static int |
CONSTRUCTOR
Identifier uniquely determining type of the object.
|
TdApi.LinkPreviewOptions |
linkPreviewOptions
Options to be used for generation of a link preview; may be null if none; pass null to use default link preview options.
|
TdApi.FormattedText |
text
Formatted text to be sent; 0-getOption("message_text_length_max") characters.
|
| Constructor and Description |
|---|
InputMessageText()
A text message.
|
InputMessageText(TdApi.FormattedText text,
TdApi.LinkPreviewOptions linkPreviewOptions,
boolean clearDraft)
A text message.
|
| Modifier and Type | Method and Description |
|---|---|
int |
getConstructor()
Returns an identifier uniquely determining type of the object.
|
toStringpublic TdApi.FormattedText text
public TdApi.LinkPreviewOptions linkPreviewOptions
public boolean clearDraft
public static final int CONSTRUCTOR
public InputMessageText()
public InputMessageText(TdApi.FormattedText text, TdApi.LinkPreviewOptions linkPreviewOptions, boolean clearDraft)
text - Formatted text to be sent; 0-getOption("message_text_length_max") characters. Only Bold, Italic, Underline, Strikethrough, Spoiler, CustomEmoji, BlockQuote, ExpandableBlockQuote, Code, Pre, PreCode, TextUrl and MentionName entities are allowed to be specified manually.linkPreviewOptions - Options to be used for generation of a link preview; may be null if none; pass null to use default link preview options.clearDraft - True, if a chat message draft must be deleted.public int getConstructor()
TdApi.ObjectgetConstructor in class TdApi.Object