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

TD.Data.PollVoteRestrictionReason

Synopsis

Documentation

data PollVoteRestrictionReason Source #

Reason of 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, users from which aren't allowed to vote

Fields

PollVoteRestrictionReasonMembershipRequired

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

Fields

  • chat_id :: Maybe Int

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

PollVoteRestrictionReasonOther

The poll can't be voted by the user due to some other reason