MadelineProtoDocs/old_docs/API_docs_v97/constructors/messageMediaPoll.md

40 lines
744 B
Markdown
Raw Normal View History

2019-05-03 21:10:09 +02:00
---
title: messageMediaPoll
2019-12-27 17:48:04 +01:00
description: Poll
2019-05-03 21:10:09 +02: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-05-03 21:10:09 +02: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-05-03 21:10:09 +02: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}
```