MadelineProtoDocs/docs/API_docs/constructors/messages.votesList.md
2020-06-16 17:50:25 +02:00

1.4 KiB

title description image redirect_from
messages.votesList How users voted in a poll https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png /API_docs/constructors/messages_votesList.html

Constructor: messages.votesList

Back to constructors index

How users voted in a poll

Attributes:

Name Type Required Description
count int Yes Total number of votes for all options (or only for the chosen option, if provided to messages.getPollVotes)
votes Array of MessageUserVote Yes Vote info for each user
users Array of User Yes Info about users that voted in the poll
next_offset string Optional Offset to use with the next messages.getPollVotes request, empty string if no more results are available.

Type: messages.VotesList

Example:

$messages.votesList = ['_' => 'messages.votesList', 'count' => int, 'votes' => [MessageUserVote, MessageUserVote], 'users' => [User, User], 'next_offset' => 'string'];

Or, if you're into Lua:

messages.votesList={_='messages.votesList', count=int, votes={MessageUserVote}, users={User}, next_offset='string'}