New poll state. Bots receive only updates about stopped polls and polls, which are sent by the bot.
True, if the poll allows multiple answers
Point in time (Unix timestamp) when the poll will be automatically closed
0-based identifier of the correct answer option. Available only for polls in the quiz mode, which are closed, or was sent (not forwarded) by the bot or to the private chat with the bot.
Text that is shown when a user chooses an incorrect answer or taps on the lamp icon in a quiz-style poll, 0-200 characters
Special entities like usernames, URLs, bot commands, etc. that appear in the explanation
True, if the poll is anonymous
True, if the poll is closed
Amount of time in seconds the poll will be active after creation
List of poll options
Unique poll identifier
Poll type, currently can be “regular” or “quiz”
Poll question, 1-255 characters
Total number of users that voted in the poll
The update's unique identifier. Update identifiers start from a certain positive number and increase sequentially. This ID becomes especially handy if you're using Webhooks, since it allows you to ignore repeated updates or to restore the correct update sequence, should they get out of order. If there are no new updates for at least a week, then identifier of the next update will be chosen randomly instead of sequentially.
Generated using TypeDoc