Link Search Menu Expand Document

Constructor: updateMessagePoll

Back to constructors index

The results of a poll have changed

Attributes:

NameTypeRequiredDescription
peerlongOptional
msg_idintOptional
top_msg_idintOptional
poll_idlongYesPoll ID
pollPollOptionalIf the server knows the client hasn’t cached this poll yet, the poll itself
resultsPollResultsYesNew poll results

Type: Update

Example:

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