2020-03-06 12:24:14 +01:00
---
title: messageUserVoteInputOption
2020-06-16 17:50:25 +02:00
description: How a user voted in a poll (reduced constructor, returned if an `option` was provided to [messages.getPollVotes ](../methods/messages.getPollVotes.md ))
2020-03-06 12:24:14 +01:00
image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png
---
# Constructor: messageUserVoteInputOption
[Back to constructors index ](index.md )
2020-06-16 17:50:25 +02:00
How a user voted in a poll (reduced constructor, returned if an `option` was provided to [messages.getPollVotes ](../methods/messages.getPollVotes.md ))
2020-03-06 12:24:14 +01:00
### Attributes:
2020-06-16 17:50:25 +02:00
| Name | Type | Required | Description |
|----------|---------------|----------|-------------|
|user\_id|[int](../types/int.md) | Yes|The user that voted for the queried `option` |
|date|[int](../types/int.md) | Yes|When did the user cast the vote|
2020-03-06 12:24:14 +01:00
### Type: [MessageUserVote](../types/MessageUserVote.md)
### Example:
```php
$messageUserVoteInputOption = ['_' => 'messageUserVoteInputOption', 'user_id' => int, 'date' => int];
```
Or, if you're into Lua:
```lua
messageUserVoteInputOption={_='messageUserVoteInputOption', user_id=int, date=int}
```