MadelineProtoDocs/docs/API_docs/constructors/pollResults.md

42 lines
1.3 KiB
Markdown
Raw Normal View History

2018-12-26 02:56:50 +01:00
---
title: pollResults
2019-12-27 17:48:04 +01:00
description: Results of poll
2018-12-26 02:56:50 +01:00
image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png
---
# Constructor: pollResults
[Back to constructors index](index.md)
2019-12-27 17:48:04 +01:00
Results of poll
2018-12-26 02:56:50 +01:00
### Attributes:
| Name | Type | Required | Description |
|----------|---------------|----------|-------------|
2019-12-27 17:48:04 +01:00
|min|[Bool](../types/Bool.md) | Optional|Similar to [min](https://core.telegram.org/api/min) objects, used for poll constructors that are the same for all users so they don't have option chosen by the current user (you can use [messages.getPollResults](../methods/messages.getPollResults.md) to get the full poll results).|
2018-12-26 02:56:50 +01:00
|results|Array of [PollAnswerVoters](../types/PollAnswerVoters.md) | Optional|Results|
2019-12-27 17:48:04 +01:00
|total\_voters|[int](../types/int.md) | Optional|Total number of people that voted in the poll|
2020-03-06 12:24:14 +01:00
|recent\_voters|Array of [int](../types/int.md) | Optional||
2018-12-26 02:56:50 +01:00
### Type: [PollResults](../types/PollResults.md)
### Example:
```php
2020-03-06 12:24:14 +01:00
$pollResults = ['_' => 'pollResults', 'min' => Bool, 'results' => [PollAnswerVoters, PollAnswerVoters], 'total_voters' => int, 'recent_voters' => [int, int]];
2018-12-26 02:56:50 +01:00
```
Or, if you're into Lua:
```lua
2020-03-06 12:24:14 +01:00
pollResults={_='pollResults', min=Bool, results={PollAnswerVoters}, total_voters=int, recent_voters={int}}
2018-12-26 02:56:50 +01:00
```