MadelineProtoDocs/old_docs/API_docs_v95/constructors/pollAnswer.md

40 lines
686 B
Markdown
Raw Normal View History

2019-03-29 21:12:30 +01:00
---
title: pollAnswer
description: Poll answer
image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png
---
# Constructor: pollAnswer
[Back to constructors index](index.md)
Poll answer
### Attributes:
| Name | Type | Required | Description |
|----------|---------------|----------|-------------|
|text|[string](../types/string.md) | Yes|Text|
|option|[bytes](../types/bytes.md) | Yes|Option|
### 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'}
```