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() |
toString
public 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. Bold, Italic, Underline and Strikethrough entities can contain and to be contained in all other entities. All other entities can't contain each other.public int getConstructor()
getConstructor
in class TdApi.Object