Fields - _id :: Maybe Int
- question :: Maybe FormattedText
Poll question; 1-300 characters; may contain only custom emoji entities - options :: Maybe [PollOption]
List of poll answer options - total_voter_count :: Maybe Int
Total number of voters, participating in the poll - recent_voter_ids :: Maybe [MessageSender]
Identifiers of recent voters, if the poll is non-anonymous and poll results are available - can_get_voters :: Maybe Bool
True, if the current user can get voters in the poll using getPollVoters - is_anonymous :: Maybe Bool
True, if the poll is anonymous - allows_multiple_answers :: Maybe Bool
True, if multiple answer options can be chosen simultaneously - allows_revoting :: Maybe Bool
True, if the poll can be answered multiple times - members_only :: Maybe Bool
True, if only the users that are members of the chat for more than a day will be able to vote - country_codes :: Maybe [Text]
The list of two-letter ISO 3166-1 alpha-2 codes of countries, users from which will be able to vote. If empty, then all users can participate in the poll - option_order :: Maybe [Int]
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 :: Maybe PollType
- open_period :: Maybe Int
Amount of time the poll will be active after creation, in seconds - close_date :: Maybe Int
Point in time (Unix timestamp) when the poll will automatically be closed - is_closed :: Maybe Bool
True, if the poll is closed - vote_restriction_reason :: Maybe PollVoteRestrictionReason
The reason describing, why the current user can't vote in the poll; may be null if the user can vote in the poll
|