java.lang.Object
it.tdlight.jni.TdApi.Object
it.tdlight.jni.TdApi.InputMessageContent
it.tdlight.jni.TdApi.InputMessageText
- Enclosing class:
- TdApi
A text message.
-
Field Summary
Modifier and TypeFieldDescriptionboolean
True, if a chat message draft must be deleted.static final int
boolean
True, if rich web page previews for URLs in the message text must be disabled.Formatted text to be sent; 1-GetOption("message_text_length_max") characters. -
Constructor Summary
ConstructorDescriptionA text message.InputMessageText
(TdApi.FormattedText text, boolean disableWebPagePreview, boolean clearDraft) A text message.InputMessageText
(DataInput input) A text message. -
Method Summary
Methods inherited from class it.tdlight.jni.TdApi.Object
serialize, toString
-
Field Details
-
text
Formatted text to be sent; 1-GetOption("message_text_length_max") characters. Only Bold, Italic, Underline, Strikethrough, Spoiler, Code, Pre, PreCode, TextUrl and MentionName entities are allowed to be specified manually. -
disableWebPagePreview
public boolean disableWebPagePreviewTrue, if rich web page previews for URLs in the message text must be disabled. -
clearDraft
public boolean clearDraftTrue, if a chat message draft must be deleted. -
CONSTRUCTOR
public static final int CONSTRUCTOR- See Also:
-
-
Constructor Details
-
InputMessageText
public InputMessageText()A text message. -
InputMessageText
public InputMessageText(TdApi.FormattedText text, boolean disableWebPagePreview, boolean clearDraft) A text message.- Parameters:
text
- FormattedText Formatted text to be sent; 1-GetOption("message_text_length_max") characters. Only Bold, Italic, Underline, Strikethrough, Spoiler, Code, Pre, PreCode, TextUrl and MentionName entities are allowed to be specified manually.disableWebPagePreview
- boolean True, if rich web page previews for URLs in the message text must be disabled.clearDraft
- boolean True, if a chat message draft must be deleted.
-
InputMessageText
A text message.- Throws:
IOException
-
-
Method Details
-
getConstructor
public int getConstructor()- Specified by:
getConstructor
in classTdApi.Object
-
serialize
- Specified by:
serialize
in classTdApi.Object
- Throws:
IOException
-
equals
-
hashCode
public int hashCode()
-