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

869 B

title description image
messageUserVote How a user voted in a poll https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png

Constructor: messageUserVote

Back to constructors index

How a user voted in a poll

Attributes:

Name Type Required Description
user_id int Yes User ID
option bytes Yes The option chosen by the user
date int Yes When did the user cast the vote

Type: MessageUserVote

Example:

$messageUserVote = ['_' => 'messageUserVote', 'user_id' => int, 'option' => 'bytes', 'date' => int];

Or, if you're into Lua:

messageUserVote={_='messageUserVote', user_id=int, option='bytes', date=int}