2019-03-29 21:12:30 +01:00
|
|
|
---
|
|
|
|
title: updateMessagePoll
|
2019-12-27 17:48:04 +01:00
|
|
|
description: The results of a poll have changed
|
2019-03-29 21:12:30 +01:00
|
|
|
image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png
|
|
|
|
---
|
|
|
|
# Constructor: updateMessagePoll
|
|
|
|
[Back to constructors index](index.md)
|
|
|
|
|
|
|
|
|
|
|
|
|
2019-12-27 17:48:04 +01:00
|
|
|
The results of a poll have changed
|
2019-03-29 21:12:30 +01:00
|
|
|
|
|
|
|
### Attributes:
|
|
|
|
|
|
|
|
| Name | Type | Required | Description |
|
|
|
|
|----------|---------------|----------|-------------|
|
|
|
|
|poll\_id|[long](../types/long.md) | Yes|Poll ID|
|
2019-12-27 17:48:04 +01:00
|
|
|
|poll|[Poll](../types/Poll.md) | Optional|If the server knows the client hasn't cached this poll yet, the poll itself|
|
|
|
|
|results|[PollResults](../types/PollResults.md) | Yes|New poll results|
|
2019-03-29 21:12:30 +01:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
### Type: [Update](../types/Update.md)
|
|
|
|
|
|
|
|
|
|
|
|
### Example:
|
|
|
|
|
|
|
|
```php
|
|
|
|
$updateMessagePoll = ['_' => 'updateMessagePoll', 'poll_id' => long, 'poll' => Poll, 'results' => PollResults];
|
|
|
|
```
|
|
|
|
|
|
|
|
|
|
|
|
Or, if you're into Lua:
|
|
|
|
|
|
|
|
```lua
|
|
|
|
updateMessagePoll={_='updateMessagePoll', poll_id=long, poll=Poll, results=PollResults}
|
|
|
|
|
|
|
|
```
|
|
|
|
|
|
|
|
|