telegram-bot-api-6.5: Easy to use library for building Telegram bots. Exports Telegram Bot API.
Safe HaskellNone
LanguageHaskell2010

Telegram.Bot.API.Types.PollOption

Contents

Synopsis

PollOption

data PollOption Source #

This object contains information about one answer option in a poll.

Constructors

PollOption 

Fields

Instances

Instances details
Show PollOption Source # 
Instance details

Defined in Telegram.Bot.API.Types.PollOption

Generic PollOption Source # 
Instance details

Defined in Telegram.Bot.API.Types.PollOption

Associated Types

type Rep PollOption :: Type -> Type #

FromJSON PollOption Source # 
Instance details

Defined in Telegram.Bot.API.Types.PollOption

Methods

parseJSON :: Value -> Parser PollOption

parseJSONList :: Value -> Parser [PollOption]

ToJSON PollOption Source # 
Instance details

Defined in Telegram.Bot.API.Types.PollOption

Methods

toJSON :: PollOption -> Value

toEncoding :: PollOption -> Encoding

toJSONList :: [PollOption] -> Value

toEncodingList :: [PollOption] -> Encoding

type Rep PollOption Source # 
Instance details

Defined in Telegram.Bot.API.Types.PollOption

type Rep PollOption = D1 ('MetaData "PollOption" "Telegram.Bot.API.Types.PollOption" "telegram-bot-api-6.5-inplace" 'False) (C1 ('MetaCons "PollOption" 'PrefixI 'True) (S1 ('MetaSel ('Just "pollOptionText") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Text) :*: S1 ('MetaSel ('Just "pollOptionVoterCount") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Int)))