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

Telegram.Bot.API.Types.Poll

Contents

Synopsis

Poll

data Poll Source #

Constructors

Poll 

Fields

Instances

Instances details
FromJSON Poll Source # 
Instance details

Defined in Telegram.Bot.API.Types.Poll

ToJSON Poll Source # 
Instance details

Defined in Telegram.Bot.API.Types.Poll

Generic Poll Source # 
Instance details

Defined in Telegram.Bot.API.Types.Poll

Associated Types

type Rep Poll :: Type -> Type #

Methods

from :: Poll -> Rep Poll x #

to :: Rep Poll x -> Poll #

Show Poll Source # 
Instance details

Defined in Telegram.Bot.API.Types.Poll

Methods

showsPrec :: Int -> Poll -> ShowS #

show :: Poll -> String #

showList :: [Poll] -> ShowS #

type Rep Poll Source # 
Instance details

Defined in Telegram.Bot.API.Types.Poll

type Rep Poll = D1 ('MetaData "Poll" "Telegram.Bot.API.Types.Poll" "telegram-bot-api-6.5-3pY7XQZ5v9zCuyh8HdDMyB" 'False) (C1 ('MetaCons "Poll" 'PrefixI 'True) (((S1 ('MetaSel ('Just "pollId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 PollId) :*: (S1 ('MetaSel ('Just "pollQuestion") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Text) :*: S1 ('MetaSel ('Just "pollOptions") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 [PollOption]))) :*: (S1 ('MetaSel ('Just "pollTotalVoterCount") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Int) :*: (S1 ('MetaSel ('Just "pollIsClosed") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Bool) :*: S1 ('MetaSel ('Just "pollIsAnonymous") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Bool)))) :*: ((S1 ('MetaSel ('Just "pollType") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 PollType) :*: (S1 ('MetaSel ('Just "pollAllowsMultipleAnswers") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Bool) :*: S1 ('MetaSel ('Just "pollCorrectOptionId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe Int)))) :*: ((S1 ('MetaSel ('Just "pollExplanation") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "pollExplanationEntities") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe [MessageEntity]))) :*: (S1 ('MetaSel ('Just "pollOpenPeriod") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe Seconds)) :*: S1 ('MetaSel ('Just "pollCloseData") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe POSIXTime)))))))