Layer 224
PollResultsObj
Results of poll
constructor
pollResults#7adf2420 flags:# min:flags.0?true results:flags.1?Vector<PollAnswerVoters> total_voters:flags.2?int recent_voters:flags.3?Vector<Peer> solution:flags.4?string solution_entities:flags.4?Vector<MessageEntity> = PollResults;
Parameters
| Name | Type | Description |
|---|---|---|
| Min | flags.0?true | Similar to min objects, used for poll constructors that are the same for all users so they don't have the option chosen by the current user (you can use messages. get Poll Results to get the full poll results). |
| Results | Vector<PollAnswerVoters> | Poll results |
| TotalVoters | flags.2?int | Total number of people that voted in the poll |
| RecentVoters | Vector<Peer> | IDs of the last users that recently voted in the poll |
| Solution | flags.4?string | Explanation of quiz solution |
| SolutionEntities | Vector<MessageEntity> | Message entities for styled text in quiz solution |
Returns
PollResultsGogram Example
// Creating PollResultsObj constructor obj := &tg.PollResultsObj{ // Optional fields: // Min: true, // Results: []tg.PollAnswerVoters{&tg.PollAnswerVoters{}}, // TotalVoters: 42, // RecentVoters: []tg.Peer{&tg.Peer{}}, // ... more optional fields }