Package it.tdlight.jni
Class TdApi.ParseTextEntities
java.lang.Object
it.tdlight.jni.TdApi.Object
it.tdlight.jni.TdApi.Function
it.tdlight.jni.TdApi.ParseTextEntities
- Enclosing class:
- TdApi
public static class TdApi.ParseTextEntities extends TdApi.Function
Parses Bold, Italic, Underline,
Strikethrough, Code, Pre, PreCode,
TextUrl and MentionName entities
contained in the text. Can be called synchronously.
Returns FormattedText
-
Field Summary
Fields Modifier and Type Field Description static int
CONSTRUCTOR
TdApi.TextParseMode
parseMode
Text parse mode.String
text
The text to parse. -
Constructor Summary
Constructors Constructor Description ParseTextEntities()
Parses Bold, Italic, Underline, Strikethrough, Code, Pre, PreCode, TextUrl and MentionName entities contained in the text.ParseTextEntities(DataInput input)
ParseTextEntities(String text, TdApi.TextParseMode parseMode)
Parses Bold, Italic, Underline, Strikethrough, Code, Pre, PreCode, TextUrl and MentionName entities contained in the text. -
Method Summary
Modifier and Type Method Description boolean
equals(Object o)
int
getConstructor()
int
hashCode()
void
serialize(DataOutput output)
Methods inherited from class it.tdlight.jni.TdApi.Function
toString
Methods inherited from class it.tdlight.jni.TdApi.Object
serialize
-
Field Details
-
text
The text to parse. -
parseMode
Text parse mode. -
CONSTRUCTOR
public static final int CONSTRUCTOR- See Also:
- Constant Field Values
-
-
Constructor Details
-
ParseTextEntities
public ParseTextEntities()Parses Bold, Italic, Underline, Strikethrough, Code, Pre, PreCode, TextUrl and MentionName entities contained in the text. Can be called synchronously.Returns
FormattedText
-
ParseTextEntities
Parses Bold, Italic, Underline, Strikethrough, Code, Pre, PreCode, TextUrl and MentionName entities contained in the text. Can be called synchronously.Returns
FormattedText
- Parameters:
text
- String The text to parse.parseMode
- TextParseMode Text parse mode.
-
ParseTextEntities
- 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()
-