java.lang.Object
it.tdlight.jni.TdApi.Object
it.tdlight.jni.TdApi.FormattedText
- Enclosing class:
- TdApi
A text with some entities.
-
Field Summary
Modifier and TypeFieldDescriptionstatic final int
Entities contained in the text.The text. -
Constructor Summary
ConstructorDescriptionA text with some entities.FormattedText
(DataInput input) A text with some entities.FormattedText
(String text, TdApi.TextEntity[] entities) A text with some entities. -
Method Summary
Methods inherited from class it.tdlight.jni.TdApi.Object
serialize, toString
-
Field Details
-
text
The text. -
entities
Entities contained in the text. Entities can be nested, but must not mutually intersect with each other. Pre, Code and PreCode entities can't contain other entities. Bold, Italic, Underline, Strikethrough, and Spoiler entities can contain and can be part of any other entities. All other entities can't contain each other. -
CONSTRUCTOR
public static final int CONSTRUCTOR- See Also:
-
-
Constructor Details
-
FormattedText
public FormattedText()A text with some entities. -
FormattedText
A text with some entities.- Parameters:
text
- String The text.entities
- TextEntity[] Entities contained in the text. Entities can be nested, but must not mutually intersect with each other. Pre, Code and PreCode entities can't contain other entities. Bold, Italic, Underline, Strikethrough, and Spoiler entities can contain and can be part of any other entities. All other entities can't contain each other.
-
FormattedText
A text with some entities.- 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()
-