Package org.drinkless.tdlib
Class TdApi.InputMessageText
- java.lang.Object
-
- org.drinkless.tdlib.TdApi.Object
-
- org.drinkless.tdlib.TdApi.InputMessageContent
-
- org.drinkless.tdlib.TdApi.InputMessageText
-
- Enclosing class:
- TdApi
public static class TdApi.InputMessageText extends TdApi.InputMessageContent
A text message.
-
-
Field Summary
Fields Modifier and Type Field Description booleanclearDraftTrue, if a chat message draft must be deleted.static intCONSTRUCTORIdentifier uniquely determining type of the object.booleandisableWebPagePreviewTrue, if rich web page previews for URLs in the message text must be disabled.TdApi.FormattedTexttextFormatted text to be sent; 1-GetOption("message_text_length_max") characters.
-
Constructor Summary
Constructors Constructor Description InputMessageText()A text message.InputMessageText(TdApi.FormattedText text, boolean disableWebPagePreview, boolean clearDraft)A text message.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intgetConstructor()-
Methods inherited from class org.drinkless.tdlib.TdApi.Object
toString
-
-
-
-
Field Detail
-
text
public TdApi.FormattedText 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
public boolean disableWebPagePreview
True, if rich web page previews for URLs in the message text must be disabled.
-
clearDraft
public boolean clearDraft
True, if a chat message draft must be deleted.
-
CONSTRUCTOR
public static final int CONSTRUCTOR
Identifier uniquely determining type of the object.- See Also:
- Constant Field Values
-
-
Constructor Detail
-
InputMessageText
public InputMessageText()
A text message.
-
InputMessageText
public InputMessageText(TdApi.FormattedText text, boolean disableWebPagePreview, boolean clearDraft)
A text message.- Parameters:
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.
-
-
Method Detail
-
getConstructor
public int getConstructor()
- Specified by:
getConstructorin classTdApi.Object- Returns:
- this.CONSTRUCTOR
-
-