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.PollAnswer

Contents

Synopsis

PollAnswer

data PollAnswer Source #

This object represents an answer of a user in a non-anonymous poll.

Constructors

PollAnswer 

Fields

  • pollAnswerPollId :: PollId

    Unique poll identifier.

  • pollAnswerVoterChat :: Maybe Chat

    The chat that changed the answer to the poll, if the voter is anonymous.

  • pollAnswerUser :: Maybe User

    The user that changed the answer to the poll, if the voter isn't anonymous. For backward compatibility, the field user in such objects will contain the user 136817688 (@Channel_Bot).

  • pollAnswerOptionIds :: [Int]

    0-based identifiers of answer options, chosen by the user. May be empty if the user retracted their vote.

Instances

Instances details
FromJSON PollAnswer Source # 
Instance details

Defined in Telegram.Bot.API.Types.PollAnswer

ToJSON PollAnswer Source # 
Instance details

Defined in Telegram.Bot.API.Types.PollAnswer

Generic PollAnswer Source # 
Instance details

Defined in Telegram.Bot.API.Types.PollAnswer

Associated Types

type Rep PollAnswer :: Type -> Type #

Show PollAnswer Source # 
Instance details

Defined in Telegram.Bot.API.Types.PollAnswer

type Rep PollAnswer Source # 
Instance details

Defined in Telegram.Bot.API.Types.PollAnswer

type Rep PollAnswer = D1 ('MetaData "PollAnswer" "Telegram.Bot.API.Types.PollAnswer" "telegram-bot-api-7.0-2XShkJeCLX71W7OKNKemWZ" 'False) (C1 ('MetaCons "PollAnswer" 'PrefixI 'True) ((S1 ('MetaSel ('Just "pollAnswerPollId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 PollId) :*: S1 ('MetaSel ('Just "pollAnswerVoterChat") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe Chat))) :*: (S1 ('MetaSel ('Just "pollAnswerUser") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe User)) :*: S1 ('MetaSel ('Just "pollAnswerOptionIds") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 [Int]))))