Method: messages.getPollVotes

Back to methods index


Name Type Required
peer Username, chat ID, Update, Message or InputPeer Optional
id int Yes
option bytes Optional
offset string Optional
limit int Yes

Return type: messages.VotesList

Can bots use this method: YES

MadelineProto Example (now async for huge speed and parallelism!):

if (!file_exists('madeline.php')) {
    copy('', 'madeline.php');
include 'madeline.php';

$MadelineProto = new \danog\MadelineProto\API('session.madeline');

$messages.VotesList = $MadelineProto->messages->getPollVotes(['peer' => InputPeer, 'id' => int, 'option' => 'bytes', 'offset' => 'string', 'limit' => int, ]);

Or, if you’re into Lua:

messages.VotesList = messages.getPollVotes({peer=InputPeer, id=int, option='bytes', offset='string', limit=int, })


Code Type Description
403 POLL_VOTE_REQUIRED Cast a vote in the poll before calling this method
This site uses cookies, as described in the cookie policy. By clicking on "Accept" you consent to the use of cookies.