haskell-tdlib-2.1.14.0: Binding to the Telegram Database Library
Safe HaskellSafe-Inferred
LanguageGHC2021

TD.Data.InputPollType

Synopsis

Documentation

data InputPollType Source #

Describes the type of poll to send

Constructors

InputPollTypeRegular

A regular poll

Fields

  • allow_adding_options :: Maybe Bool

    True, if answer options can be added to the poll after creation; not supported in channel chats and for anonymous polls

InputPollTypeQuiz

A poll in quiz mode, which has predefined correct answers

Fields

  • correct_option_ids :: Maybe [Int]

    Increasing list of 0-based identifiers of the correct answer options; must be non-empty

  • 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