MadelineProtoDocs/docs/API_docs/constructors/messages.votesList.md
2024-05-01 14:53:46 +02:00

1.4 KiB

title description nav_exclude image redirect_from
messages.votesList How users voted in a poll true 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 MessagePeerVote Yes Vote info for each user
chats Array of Chat Yes Mentioned chats
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' => [MessagePeerVote, MessagePeerVote], 'chats' => [Chat, Chat], 'users' => [User, User], 'next_offset' => 'string'];