2019-03-29 21:12:30 +01:00
|
|
|
---
|
|
|
|
title: pollAnswer
|
2019-12-27 17:48:04 +01:00
|
|
|
description: A possible answer of a poll
|
2019-03-29 21:12:30 +01:00
|
|
|
image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png
|
|
|
|
---
|
|
|
|
# Constructor: pollAnswer
|
|
|
|
[Back to constructors index](index.md)
|
|
|
|
|
|
|
|
|
|
|
|
|
2019-12-27 17:48:04 +01:00
|
|
|
A possible answer of a poll
|
2019-03-29 21:12:30 +01:00
|
|
|
|
|
|
|
### Attributes:
|
|
|
|
|
|
|
|
| Name | Type | Required | Description |
|
|
|
|
|----------|---------------|----------|-------------|
|
2019-12-27 17:48:04 +01:00
|
|
|
|text|[string](../types/string.md) | Yes|Textual representation of the answer|
|
|
|
|
|option|[bytes](../types/bytes.md) | Yes|The param that has to be passed to [messages.sendVote](../methods/messages.sendVote.md).|
|
2019-03-29 21:12:30 +01:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
### Type: [PollAnswer](../types/PollAnswer.md)
|
|
|
|
|
|
|
|
|
|
|
|
### Example:
|
|
|
|
|
|
|
|
```php
|
|
|
|
$pollAnswer = ['_' => 'pollAnswer', 'text' => 'string', 'option' => 'bytes'];
|
|
|
|
```
|
|
|
|
|
|
|
|
|
|
|
|
Or, if you're into Lua:
|
|
|
|
|
|
|
|
```lua
|
|
|
|
pollAnswer={_='pollAnswer', text='string', option='bytes'}
|
|
|
|
|
|
|
|
```
|
|
|
|
|
|
|
|
|