Package it.tdlight.jni
Class TdApi.ParseMarkdown
java.lang.Object
it.tdlight.jni.TdApi.Object
it.tdlight.jni.TdApi.Function
it.tdlight.jni.TdApi.ParseMarkdown
- Enclosing class:
- TdApi
public static class TdApi.ParseMarkdown extends TdApi.Function
Parses Markdown entities in a
human-friendly format, ignoring markup
errors. Can be called synchronously.
Returns FormattedText
-
Field Summary
Fields Modifier and Type Field Description static int
CONSTRUCTOR
TdApi.FormattedText
text
The text to parse. -
Constructor Summary
Constructors Constructor Description ParseMarkdown()
Parses Markdown entities in a human-friendly format, ignoring markup errors.ParseMarkdown(TdApi.FormattedText text)
Parses Markdown entities in a human-friendly format, ignoring markup errors.ParseMarkdown(DataInput input)
-
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. For example, "__italic__ ~~strikethrough~~ **bold** `code` ```pre``` __[italic__ textUrl](telegram.org) _Italic**bold italic_Bold**". -
CONSTRUCTOR
public static final int CONSTRUCTOR- See Also:
- Constant Field Values
-
-
Constructor Details
-
ParseMarkdown
public ParseMarkdown()Parses Markdown entities in a human-friendly format, ignoring markup errors. Can be called synchronously.Returns
FormattedText
-
ParseMarkdown
Parses Markdown entities in a human-friendly format, ignoring markup errors. Can be called synchronously.Returns
FormattedText
- Parameters:
text
- FormattedText The text to parse. For example, "__italic__ ~~strikethrough~~ **bold** `code` ```pre``` __[italic__ textUrl](telegram.org) _Italic**bold italic_Bold**".
-
ParseMarkdown
- 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()
-