pollResults #
Results of poll¶
Layer 223
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 |
|---|---|---|
| flags | # | Flags, see TL conditional fields |
| 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.getPollResults to get the full poll results). |
| has_unread_votes | flags.6?true | Whether there are unread votes in this non-anonymous poll, see polls » |
| can_view_stats | flags.7?true | Whether the current user can view detailed poll statistics » |
| results | flags.1?Vector<PollAnswerVoters> | Poll results |
| total_voters | flags.2?int | Total number of people that voted in the poll |
| recent_voters | flags.3?Vector<Peer> | IDs of the last users that recently voted in the poll |
| solution | flags.4?string | Explanation of quiz solution |
| solution_entities | flags.4?Vector<MessageEntity> | Message entities for styled text in quiz solution |
| solution_media | flags.5?MessageMedia | Optional media attachment shown alongside the quiz solution explanation |
Type #
Related pages #
Min constructors #
In some situations user and channel constructors have reduced set of fields present (although id is always there) and min flag set.¶
messages.getPollResults #
Get poll results¶
Polls and quizzes #
Telegram allows sending polls and quizzes, that can be voted on by thousands, if not millions of users in chats and channels.¶
Channel statistics #
Telegram offers detailed channel statistics for channels and supergroups.¶
Styled text with message entities #
How to create styled text with message entities¶