2019-03-08 13:49:23 +01:00
|
|
|
---
|
|
|
|
title: messageMediaPoll
|
2019-12-27 17:48:04 +01:00
|
|
|
description: Poll
|
2019-03-08 13:49:23 +01:00
|
|
|
image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png
|
|
|
|
---
|
|
|
|
# Constructor: messageMediaPoll
|
|
|
|
[Back to constructors index](index.md)
|
|
|
|
|
|
|
|
|
|
|
|
|
2019-12-27 17:48:04 +01:00
|
|
|
Poll
|
2019-03-08 13:49:23 +01:00
|
|
|
|
|
|
|
### Attributes:
|
|
|
|
|
|
|
|
| Name | Type | Required | Description |
|
|
|
|
|----------|---------------|----------|-------------|
|
2019-12-27 17:48:04 +01:00
|
|
|
|poll|[Poll](../types/Poll.md) | Yes|The poll|
|
|
|
|
|results|[PollResults](../types/PollResults.md) | Yes|The results of the poll|
|
2019-03-08 13:49:23 +01:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
### Type: [MessageMedia](../types/MessageMedia.md)
|
|
|
|
|
|
|
|
|
|
|
|
### Example:
|
|
|
|
|
|
|
|
```php
|
|
|
|
$messageMediaPoll = ['_' => 'messageMediaPoll', 'poll' => Poll, 'results' => PollResults];
|
|
|
|
```
|
|
|
|
|
|
|
|
|
|
|
|
Or, if you're into Lua:
|
|
|
|
|
|
|
|
```lua
|
|
|
|
messageMediaPoll={_='messageMediaPoll', poll=Poll, results=PollResults}
|
|
|
|
|
|
|
|
```
|
|
|
|
|
|
|
|
|