public static class TdApi.InputMessageText extends TdApi.InputMessageContent
TdApi.InputMessageContent.Constructors
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.
|
boolean |
disableWebPagePreview
True, if rich web page previews for URLs in the message text must be disabled.
|
TdApi.FormattedText |
text
Formatted text to be sent; 1-GetOption("message_text_length_max") characters.
|
Constructor and Description |
---|
InputMessageText()
A text message.
|
InputMessageText(TdApi.FormattedText text,
boolean disableWebPagePreview,
boolean clearDraft)
A text message.
|
Modifier and Type | Method and Description |
---|---|
int |
getConstructor() |
toString
public TdApi.FormattedText text
public boolean disableWebPagePreview
public boolean clearDraft
public static final int CONSTRUCTOR
public InputMessageText()
public InputMessageText(TdApi.FormattedText text, boolean disableWebPagePreview, boolean clearDraft)
text
- Formatted text to be sent; 1-GetOption("message_text_length_max") characters. Only Bold, Italic, Underline, Strikethrough, Code, Pre, PreCode, TextUrl and MentionName entities are allowed to be specified manually.disableWebPagePreview
- True, if rich web page previews for URLs in the message text must be disabled.clearDraft
- True, if a chat message draft must be deleted.public int getConstructor()
getConstructor
in class TdApi.InputMessageContent