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

TD.Data.PollVoteRestrictionReason

Synopsis

Documentation

data PollVoteRestrictionReason Source #

Reason for vote restriction in the poll for the current user

Constructors

PollVoteRestrictionReasonClosed

The poll is closed

PollVoteRestrictionReasonYetUnsent

The poll isn't sent yet

PollVoteRestrictionReasonScheduled

The poll is from a scheduled message

PollVoteRestrictionReasonCountryRestricted

The user is from a country whose users aren't allowed to vote

Fields

PollVoteRestrictionReasonMembershipRequired

The user must have been a member of the chat for at least a day to vote

Fields

  • chat_id :: Maybe Int

    Identifier of the chat that must be joined for at least a day before the user can vote

PollVoteRestrictionReasonOther

The user can't vote in the poll due to some other reason