MadelineProtoDocs/docs/API_docs/constructors/messagePeerVoteInputOption.md
2024-05-01 14:53:46 +02:00

31 lines
1015 B
Markdown

---
title: "messagePeerVoteInputOption"
description: "How a peer voted in a poll (reduced constructor, returned if an option was provided to messages.getPollVotes)"
nav_exclude: true
image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png
---
# Constructor: messagePeerVoteInputOption
[Back to constructors index](/API_docs/constructors/index.html)
How a peer voted in a poll (reduced constructor, returned if an `option` was provided to [messages.getPollVotes](../methods/messages.getPollVotes.html))
### Attributes:
| Name | Type | Required | Description |
|----------|---------------|----------|-------------|
|peer|[long](/API_docs/types/long.html) | Yes|The peer that voted for the queried `option`|
|date|[int](/API_docs/types/int.html) | Yes|When did the peer cast the vote|
### Type: [MessagePeerVote](/API_docs/types/MessagePeerVote.html)
### Example:
```
$messagePeerVoteInputOption = ['_' => 'messagePeerVoteInputOption', 'peer' => long, 'date' => int];
```