public static class TdApi.FormattedText extends TdApi.Object
| Modifier and Type | Field and Description |
|---|---|
static int |
CONSTRUCTOR
Identifier uniquely determining type of the object.
|
TdApi.TextEntity[] |
entities
Entities contained in the text.
|
java.lang.String |
text
The text.
|
| Constructor and Description |
|---|
FormattedText()
A text with some entities.
|
FormattedText(java.lang.String text,
TdApi.TextEntity[] entities)
A text with some entities.
|
| Modifier and Type | Method and Description |
|---|---|
int |
getConstructor()
Returns an identifier uniquely determining type of the object.
|
toStringpublic java.lang.String text
public TdApi.TextEntity[] entities
public static final int CONSTRUCTOR
public FormattedText()
public FormattedText(java.lang.String text,
TdApi.TextEntity[] entities)
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. BlockQuote entities can't contain other BlockQuote 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.public int getConstructor()
TdApi.ObjectgetConstructor in class TdApi.Object