Function parse_text_entities

Source
pub async fn parse_text_entities(
    text: String,
    parse_mode: TextParseMode,
    client_id: i32,
) -> Result<FormattedText, Error>
Expand description

Parses Bold, Italic, Underline, Strikethrough, Spoiler, CustomEmoji, BlockQuote, Code, Pre, PreCode, TextUrl and MentionName entities from a marked-up text. Can be called synchronously

ยงArguments

  • text - The text to parse
  • parse_mode - Text parse mode
  • client_id - The client id to send the request to