PollResults

class pyrogram.raw.types.PollResults

Results of poll

Constructor of PollResults.

Details:
  • Layer: 223

  • ID: 7ADF2420

Parameters:
  • min (bool, optional) – 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.getPollResults to get the full poll results).

  • results (List of PollAnswerVoters, optional) – Poll results

  • total_voters (int 32-bit, optional) – Total number of people that voted in the poll

  • recent_voters (List of Peer, optional) – IDs of the last users that recently voted in the poll

  • solution (str, optional) – Explanation of quiz solution

  • solution_entities (List of MessageEntity, optional) – Message entities for styled text in quiz solution

TL Schema

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

Parameter Tree

PollResults
├── mintrue (optional)
├── resultsVector < PollAnswerVoters > (optional)
│ └── PollAnswerVoters
│ ├── chosentrue (optional)
│ ├── correcttrue (optional)
│ ├── optionbytes
│ └── votersint
├── total_votersint (optional)
├── recent_votersVector < Peer > (optional)
│ ├── PeerUser
│ │ └── user_idlong
│ ├── PeerChat
│ │ └── chat_idlong
│ └── PeerChannel
│ └── channel_idlong
├── solutionstring (optional)
└── solution_entitiesVector < MessageEntity > (optional)
│ ├── offsetint
│ └── lengthint
│ ├── offsetint
│ └── lengthint
│ ├── offsetint
│ └── lengthint
│ ├── offsetint
│ └── lengthint
│ ├── offsetint
│ └── lengthint
│ ├── offsetint
│ └── lengthint
│ ├── offsetint
│ └── lengthint
│ ├── offsetint
│ └── lengthint
│ ├── offsetint
│ └── lengthint
│ ├── offsetint
│ ├── lengthint
│ └── languagestring
│ ├── offsetint
│ ├── lengthint
│ └── urlstring
│ ├── offsetint
│ ├── lengthint
│ └── user_idlong
│ ├── offsetint
│ ├── lengthint
│ └── user_idInputUser
│ ├── InputUserEmpty
│ ├── InputUserSelf
│ ├── InputUser
│ └── InputUserFromMessage
│ ├── offsetint
│ └── lengthint
│ ├── offsetint
│ └── lengthint
│ ├── offsetint
│ └── lengthint
│ ├── offsetint
│ └── lengthint
│ ├── offsetint
│ └── lengthint
│ ├── offsetint
│ └── lengthint
│ ├── offsetint
│ ├── lengthint
│ └── document_idlong
│ ├── collapsedtrue (optional)
│ ├── offsetint
│ └── lengthint
├── relativetrue (optional)
├── short_timetrue (optional)
├── long_timetrue (optional)
├── short_datetrue (optional)
├── long_datetrue (optional)
├── day_of_weektrue (optional)
├── offsetint
├── lengthint
└── dateint

Example

PollResults(
)