OptionalattachedOptional media attachment displayed alongside the poll.
OptionalclosePoint in time when the poll will be automatically closed. Mutually exclusive with closePeriod.
OptionalcloseAmount of time in seconds the poll will be active after creation, up to the poll_close_period_max server limit (currently 600). Mutually exclusive with closeDate.
Optionalcorrect0-based index(es) of the correct answer(s) in answers, for quizzes.
OptionalcountriesIf set, only users from the specified ISO 3166-1 alpha-2 country codes may vote.
OptionalhideWhether vote results are hidden from all participants until the poll is closed.
OptionalmultipleWhether multiple options can be chosen as answer.
OptionalopenWhether users can add new answer options after the poll is created.
OptionalparseParse mode override for question/answers/solution.
OptionalpublicWhether cast votes are publicly visible to all users (non-anonymous poll).
The poll question. Parsed with the client parse mode — only custom emoji entities are allowed here (Premium users only).
OptionalquizSend as a quiz (with wrong and correct answers) — requires correctAnswers.
OptionalrevotingIf set, users cannot change their vote after casting it.
OptionalshuffleWhether answer options are displayed in a randomized order to each user.
OptionalsolutionText shown when a user chooses an incorrect quiz answer or taps the lamp icon; 0-200 characters with at most 2 line feeds. Parsed with the client parse mode.
OptionalsolutionFormatting entities for solution. When provided, parsing is skipped.
OptionalsolutionOptional media attachment shown alongside the quiz solution explanation.
OptionalsubscribersWhether only subscribers can vote: a user may vote only while currently a member of the channel/supergroup.
Poll definition for TelegramClient.sendPoll.