telegram-bot-api-7.0: Easy to use library for building Telegram bots. Exports Telegram Bot API.
Safe HaskellSafe-Inferred
LanguageHaskell2010

Telegram.Bot.API.Types.TextQuote

Contents

Synopsis

TextQuote

data TextQuote Source #

This object contains information about the quoted part of a message that is replied to by the given message.

Constructors

TextQuote 

Fields

  • textQuoteText :: Text

    Text of the quoted part of a message that is replied to by the given message.

  • textQuoteEntities :: Maybe [MessageEntity]

    Special entities that appear in the quote. Currently, only bold, italic, underline, strikethrough, spoiler, and custom_emoji entities are kept in quotes.

  • textQuotePosition :: Int

    Approximate quote position in the original message in UTF-16 code units as specified by the sender.

  • textQuoteIsManual :: Maybe Bool

    True, if the quote was chosen manually by the message sender. Otherwise, the quote was added automatically by the server.

Instances

Instances details
FromJSON TextQuote Source # 
Instance details

Defined in Telegram.Bot.API.Types.TextQuote

ToJSON TextQuote Source # 
Instance details

Defined in Telegram.Bot.API.Types.TextQuote

Generic TextQuote Source # 
Instance details

Defined in Telegram.Bot.API.Types.TextQuote

Associated Types

type Rep TextQuote :: Type -> Type #

Show TextQuote Source # 
Instance details

Defined in Telegram.Bot.API.Types.TextQuote

type Rep TextQuote Source # 
Instance details

Defined in Telegram.Bot.API.Types.TextQuote

type Rep TextQuote = D1 ('MetaData "TextQuote" "Telegram.Bot.API.Types.TextQuote" "telegram-bot-api-7.0-2XShkJeCLX71W7OKNKemWZ" 'False) (C1 ('MetaCons "TextQuote" 'PrefixI 'True) ((S1 ('MetaSel ('Just "textQuoteText") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Text) :*: S1 ('MetaSel ('Just "textQuoteEntities") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe [MessageEntity]))) :*: (S1 ('MetaSel ('Just "textQuotePosition") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Int) :*: S1 ('MetaSel ('Just "textQuoteIsManual") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe Bool)))))