MadelineProtoDocs/old_docs/API_docs_v43/constructors/messages.votesList.md

43 lines
1.4 KiB
Markdown

---
title: messages.votesList
description: How users voted in a poll
image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png
redirect_from: /API_docs/constructors/messages_votesList.html
---
# Constructor: messages.votesList
[Back to constructors index](index.md)
How users voted in a poll
### Attributes:
| Name | Type | Required | Description |
|----------|---------------|----------|-------------|
|count|[int](../types/int.md) | Yes|Total number of votes for all options (or only for the chosen `option`, if provided to [messages.getPollVotes](../methods/messages.getPollVotes.md))|
|votes|Array of [MessageUserVote](../types/MessageUserVote.md) | Yes|Vote info for each user|
|users|Array of [User](../types/User.md) | Yes|Info about users that voted in the poll|
|next\_offset|[string](../types/string.md) | Optional|Offset to use with the next [messages.getPollVotes](../methods/messages.getPollVotes.md) request, empty string if no more results are available.|
### Type: [messages.VotesList](../types/messages.VotesList.md)
### Example:
```php
$messages.votesList = ['_' => 'messages.votesList', 'count' => int, 'votes' => [MessageUserVote, MessageUserVote], 'users' => [User, User], 'next_offset' => 'string'];
```
Or, if you're into Lua:
```lua
messages.votesList={_='messages.votesList', count=int, votes={MessageUserVote}, users={User}, next_offset='string'}
```