haskell-tdlib-2.1.28.0: Binding to the Telegram Database Library
Safe HaskellSafe-Inferred
LanguageGHC2021

TD.Data.TextQuote

Documentation

data TextQuote Source #

Constructors

TextQuote

Describes manually or automatically chosen quote from another message

Fields

  • text :: Maybe FormattedText

    Text of the quote. Only Bold, Italic, Underline, Strikethrough, Spoiler, CustomEmoji, and DateTime entities can be present in the text. May be empty if the quote was chosen from a rich message

  • rich_texts :: Maybe [RichText]

    Rich text of the quote if it was chosen from a rich message; empty if the quote wasn't chosen from a rich message. Only richTextPlain, richTextBold, richTextItalic, richTextUnderline, richTextStrikethrough, richTextSpoiler, richTextSubscript, richTextSuperscript, richTextDateTime, richTextCustomEmoji, richTextMathematicalExpression, and richTexts can be present in the texts

  • position :: Maybe Int

    Approximate quote position in the original message in UTF-16 code units as specified by the message sender. For quotes from rich messages, it is the position in the text formed by joining plain texts of all quotable texts of the message, separated by line feeds

  • is_manual :: Maybe Bool

    True, if the quote was manually chosen by the message sender

Instances

Instances details
FromJSON TextQuote Source # 
Instance details

Defined in TD.Data.TextQuote

Show TextQuote Source # 
Instance details

Defined in TD.Data.TextQuote

Eq TextQuote Source # 
Instance details

Defined in TD.Data.TextQuote

ShortShow TextQuote Source # 
Instance details

Defined in TD.Data.TextQuote