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'}

This site uses cookies, as described in the cookie policy. By clicking on "Accept" you consent to the use of cookies.