MadelineProtoDocs/docs/API_docs/constructors/pollResults.md

41 lines
870 B
Markdown
Raw Normal View History

2018-12-26 02:56:50 +01:00
---
title: pollResults
description: Poll results
image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png
---
# Constructor: pollResults
[Back to constructors index](index.md)
Poll results
### Attributes:
| Name | Type | Required | Description |
|----------|---------------|----------|-------------|
|min|[Bool](../types/Bool.md) | Optional|Min?|
|results|Array of [PollAnswerVoters](../types/PollAnswerVoters.md) | Optional|Results|
|total\_voters|[int](../types/int.md) | Optional|Total voters|
### Type: [PollResults](../types/PollResults.md)
### Example:
```php
$pollResults = ['_' => 'pollResults', 'min' => Bool, 'results' => [PollAnswerVoters, PollAnswerVoters], 'total_voters' => int];
```
Or, if you're into Lua:
```lua
pollResults={_='pollResults', min=Bool, results={PollAnswerVoters}, total_voters=int}
```