haskell-tdlib-2.0.47.0
Safe HaskellSafe-Inferred
LanguageGHC2021

TD.Data.PollType

Synopsis

Documentation

data PollType Source #

Describes the type of poll

Constructors

PollTypeRegular

A regular poll

Fields

PollTypeQuiz

A poll in quiz mode, which has exactly one correct answer option and can be answered only once

Fields

  • correct_option_id :: Maybe Int

    0-based identifier of the correct answer option; -1 for a yet unanswered poll

  • explanation :: Maybe FormattedText

    Text that is shown when the user chooses an incorrect answer or taps on the lamp icon; 0-200 characters with at most 2 line feeds; empty for a yet unanswered poll

Instances

Instances details
FromJSON PollType Source # 
Instance details

Defined in TD.Data.PollType

ToJSON PollType Source # 
Instance details

Defined in TD.Data.PollType

Show PollType Source # 
Instance details

Defined in TD.Data.PollType

Eq PollType Source # 
Instance details

Defined in TD.Data.PollType

ShortShow PollType Source # 
Instance details

Defined in TD.Data.PollType