ParseTextEntities

public struct ParseTextEntities : Codable, Equatable, TDFunction

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

  • Undocumented

    Declaration

    Swift

    public typealias Result = FormattedText
  • The text which should be parsed

    Declaration

    Swift

    public let text: String
  • Text parse mode

    Declaration

    Swift

    public let parseMode: TextParseMode
  • 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

    Declaration

    Swift

    public init(text: String, parseMode: TextParseMode)

    Parameters

    text

    The text which should be parsed

    parseMode

    Text parse mode