Package org.drinkless.tdlib
Class TdApi.ParseTextEntities
- java.lang.Object
-
- org.drinkless.tdlib.TdApi.Object
-
- org.drinkless.tdlib.TdApi.Function
-
- org.drinkless.tdlib.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 intCONSTRUCTORIdentifier uniquely determining type of the object.TdApi.TextParseModeparseModeText parse mode.StringtextThe text to parse.
-
Constructor Summary
Constructors Constructor Description ParseTextEntities()Default constructor for a function, which parses Bold, Italic, Underline, Strikethrough, Code, Pre, PreCode, TextUrl and MentionName entities contained in the text.ParseTextEntities(String text, TdApi.TextParseMode parseMode)Creates a function, which parses Bold, Italic, Underline, Strikethrough, Code, Pre, PreCode, TextUrl and MentionName entities contained in the text.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intgetConstructor()-
Methods inherited from class org.drinkless.tdlib.TdApi.Function
toString
-
-
-
-
Field Detail
-
text
public String text
The text to parse.
-
parseMode
public TdApi.TextParseMode parseMode
Text parse mode.
-
CONSTRUCTOR
public static final int CONSTRUCTOR
Identifier uniquely determining type of the object.- See Also:
- Constant Field Values
-
-
Constructor Detail
-
ParseTextEntities
public ParseTextEntities()
Default constructor for a function, which parses Bold, Italic, Underline, Strikethrough, Code, Pre, PreCode, TextUrl and MentionName entities contained in the text. Can be called synchronously.Returns
FormattedText
-
ParseTextEntities
public ParseTextEntities(String text, TdApi.TextParseMode parseMode)
Creates a function, which parses Bold, Italic, Underline, Strikethrough, Code, Pre, PreCode, TextUrl and MentionName entities contained in the text. Can be called synchronously.Returns
FormattedText- Parameters:
text- The text to parse.parseMode- Text parse mode.
-
-
Method Detail
-
getConstructor
public int getConstructor()
- Specified by:
getConstructorin classTdApi.Object- Returns:
- this.CONSTRUCTOR
-
-