parseTextEntities - libtd-ktx

Kotlin Coroutines extensions for Telegram API TDLib (Telegram Database library)


libtd-ktx / kotlinx.telegram.coroutines / parseTextEntities

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.

Parameters

text - The text which should be parsed.

parseMode - Text parse mode.

Return FormattedText A text with some entities.