Layer 227
PollAnswerVotersObj
A poll answer, and how users voted on it
constructor
pollAnswerVoters#3b6ddad2 flags:# chosen:flags.0?true correct:flags.1?true option:bytes voters:int = PollAnswerVoters;
Parameters
| Name | Type | Description |
|---|---|---|
| Chosen | flags .0? true | Whether we have chosen this answer |
| Correct | flags .1? true | For quizzes, whether the option we have chosen is correct |
| Option | bytes | The param that has to be passed to messages. send Vote. |
| Voters | flags .2? int | How many users voted for this option |
| RecentVoters | flags .2? Vector < Peer > | Peers of the most recent voters for this option; mutually exclusive with voters |
Returns
PollAnswerVotersGogram Example
// Creating PollAnswerVotersObj constructor obj := &tg.PollAnswerVotersObj{ Chosen: nil, Correct: nil, Option: []byte{0x01, 0x02, 0x03}, Voters: nil, RecentVoters: nil, }