MadelineProtoDocs/old_docs/API_docs_v38/constructors/messageUserVoteInputOption.md
2020-06-16 17:50:25 +02:00

1.1 KiB

title description image
messageUserVoteInputOption How a user voted in a poll (reduced constructor, returned if an `option` was provided to [messages.getPollVotes](../methods/messages.getPollVotes.md)) https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png

Constructor: messageUserVoteInputOption

Back to constructors index

How a user voted in a poll (reduced constructor, returned if an option was provided to messages.getPollVotes)

Attributes:

Name Type Required Description
user_id int Yes The user that voted for the queried option
date int Yes When did the user cast the vote

Type: MessageUserVote

Example:

$messageUserVoteInputOption = ['_' => 'messageUserVoteInputOption', 'user_id' => int, 'date' => int];

Or, if you're into Lua:

messageUserVoteInputOption={_='messageUserVoteInputOption', user_id=int, date=int}