TD.Data.Poll
data Poll Source #
Constructors
Describes a poll
Fields
Unique poll identifier
Poll question; 1-300 characters. Only custom emoji entities are allowed
List of poll answer options
Total number of voters, participating in the poll
Identifiers of recent voters, if the poll is non-anonymous
True, if the poll is anonymous
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 #