-
Notifications
You must be signed in to change notification settings - Fork 11
parse text entities
Alexey Kravtsov edited this page May 19, 2020
·
1 revision
libtd-ktx / kotlinx.telegram.coroutines / parseTextEntities
suspend fun
TelegramFlow
.parseTextEntities(text:
String
?, parseMode:
TextParseMode
?):
FormattedText
Suspend function, which parses Bold, Italic, Underline, Strikethrough, Code, Pre, PreCode, TextUrl and MentionName entities contained in the text. This is an offline method. Can be called before authorization. Can be called synchronously.
text
- The text which should be parsed.
parseMode
- Text parse mode.
Return FormattedText A text with some entities.