TD.Data.Poll
data Poll Source #
Constructors
Describes a poll
Fields
Unique poll identifier
Poll question; 1-300 characters; may contain only custom emoji entities
List of poll answer options
Total number of voters, participating in the poll
Identifiers of recent voters, if the poll is non-anonymous and poll results are available
True, if the current user can get voters in the poll
True, if the poll is anonymous
True, if multiple answer options can be chosen simultaneously
True, if the poll can be answered multiple times
The list of 0-based poll identifiers in which the options of the poll must be shown; empty if the order of options must not be changed
Type of the poll
Amount of time the poll will be active after creation, in seconds
Point in time (Unix timestamp) when the poll will automatically be closed
True, if the poll is closed
Defined in TD.Data.Poll
Methods
parseJSON :: Value -> Parser Poll #
parseJSONList :: Value -> Parser [Poll] #
showsPrec :: Int -> Poll -> ShowS #
show :: Poll -> String #
showList :: [Poll] -> ShowS #
(==) :: Poll -> Poll -> Bool #
(/=) :: Poll -> Poll -> Bool #
shortShow :: Poll -> String Source #