MadelineProtoDocs/old_docs/API_docs_v102/constructors/updateMessagePoll.md
2019-12-27 17:48:04 +01:00

946 B

title description image
updateMessagePoll The results of a poll have changed https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png

Constructor: updateMessagePoll

Back to constructors index

The results of a poll have changed

Attributes:

Name Type Required Description
poll_id long Yes Poll ID
poll Poll Optional If the server knows the client hasn't cached this poll yet, the poll itself
results PollResults Yes New poll results

Type: Update

Example:

$updateMessagePoll = ['_' => 'updateMessagePoll', 'poll_id' => long, 'poll' => Poll, 'results' => PollResults];

Or, if you're into Lua:

updateMessagePoll={_='updateMessagePoll', poll_id=long, poll=Poll, results=PollResults}