MadelineProtoDocs/docs/API_docs/constructors/updateMessagePollVote.md

41 lines
907 B
Markdown
Raw Normal View History

2020-03-06 12:24:14 +01:00
---
title: updateMessagePollVote
2020-06-16 17:50:25 +02:00
description: A specific user has voted in a poll
2020-03-06 12:24:14 +01:00
image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png
---
# Constructor: updateMessagePollVote
[Back to constructors index](index.md)
2020-06-16 17:50:25 +02:00
A specific user has voted in a poll
2020-03-06 12:24:14 +01:00
### Attributes:
2020-06-16 17:50:25 +02:00
| Name | Type | Required | Description |
|----------|---------------|----------|-------------|
|poll\_id|[long](../types/long.md) | Yes|Poll ID|
|user\_id|[int](../types/int.md) | Yes|User ID|
|options|Array of [bytes](../types/bytes.md) | Yes|Chosen option(s)|
2020-03-06 12:24:14 +01:00
### Type: [Update](../types/Update.md)
### Example:
```php
$updateMessagePollVote = ['_' => 'updateMessagePollVote', 'poll_id' => long, 'user_id' => int, 'options' => ['bytes', 'bytes']];
```
Or, if you're into Lua:
```lua
updateMessagePollVote={_='updateMessagePollVote', poll_id=long, user_id=int, options={'bytes'}}
```