haskell-tdlib-2.0.47.0
Safe HaskellSafe-Inferred
LanguageGHC2021

TD.Data.FormattedText

Documentation

data FormattedText Source #

Constructors

FormattedText

A text with some entities

Fields

  • text :: Maybe Text

    The text

  • entities :: Maybe [TextEntity]

    Entities contained in the text. Entities can be nested, but must not mutually intersect with each other. Pre, Code and PreCode entities can't contain other entities. BlockQuote entities can't contain other BlockQuote entities. Bold, Italic, Underline, Strikethrough, and Spoiler entities can contain and can be part of any other entities. All other entities can't contain each other