mirror of
https://github.com/danog/MadelineProtoDocs.git
synced 2024-12-02 09:38:28 +01:00
1.1 KiB
1.1 KiB
title | description | nav_exclude | image |
---|---|---|---|
pollAnswerVoters | A poll answer, and how users voted on it | true | https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png |
Constructor: pollAnswerVoters
A poll answer, and how users voted on it
Attributes:
Name | Type | Required | Description |
---|---|---|---|
chosen | Bool | Optional | Whether we have chosen this answer |
correct | Bool | Optional | For quizzes, whether the option we have chosen is correct |
option | bytes | Yes | The param that has to be passed to messages.sendVote. |
voters | int | Yes | How many users voted for this option |
Type: PollAnswerVoters
Example:
$pollAnswerVoters = ['_' => 'pollAnswerVoters', 'chosen' => Bool, 'correct' => Bool, 'option' => 'bytes', 'voters' => int];