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

TD.Data.PollOption

Documentation

data PollOption Source #

Constructors

PollOption

Describes one answer option of a poll

Fields

  • _id :: Maybe Text

    Unique identifier of the option in the poll

  • text :: Maybe FormattedText

    Option text; 1-100 characters; may contain only custom emoji entities

  • media :: Maybe MessageContent

    Option media. Currently, can be only of the types messageAnimation, messageLocation, messagePhoto, messageSticker, messageVenue, or messageVideo without caption

  • voter_count :: Maybe Int

    Number of voters for this option, available only for closed or voted polls, or if the current user is the creator of the poll

  • vote_percentage :: Maybe Int

    The percentage of votes for this option; 0-100

  • recent_voter_ids :: Maybe [MessageSender]

    Identifiers of recent voters for the option, if the poll is non-anonymous and poll results are available

  • is_chosen :: Maybe Bool

    True, if the option was chosen by the user

  • is_being_chosen :: Maybe Bool

    True, if the option is being chosen by a pending setPollAnswer request

  • author :: Maybe MessageSender

    Identifier of the user or chat who added the option; may be null if the option existed from creation of the poll

  • addition_date :: Maybe Int

    Point in time (Unix timestamp) when the option was added; 0 if the option existed from creation of the poll

Instances

Instances details
FromJSON PollOption Source # 
Instance details

Defined in TD.Data.PollOption

Show PollOption Source # 
Instance details

Defined in TD.Data.PollOption

Eq PollOption Source # 
Instance details

Defined in TD.Data.PollOption

ShortShow PollOption Source # 
Instance details

Defined in TD.Data.PollOption