BPT\types\poll

Extended by : BPT\types\types

This object contains information about a poll.

Properties
Name Type Description Kind
id string Unique poll identifier normal
question string Poll question, 1-300 characters normal
options pollOption[] List of poll options normal
total_voter_count int Total number of users that voted in the poll normal
is_closed bool True, if the poll is closed normal
is_anonymous bool True, if the poll is anonymous normal
type string Poll type, currently can be “regular” or “quiz” normal
allows_multiple_answers bool True, if the poll allows multiple answers normal
correct_option_id int Optional. 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. normal
explanation string Optional. 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 normal
explanation_entities messageEntity[] Optional. Special entities like usernames, URLs, bot commands, etc. that appear in the explanation normal
open_period int Optional. Amount of time in seconds the poll will be active after creation normal
close_date int Optional. Point in time (Unix timestamp) when the poll will be automatically closed normal