MadelineProtoDocs/old_docs/API_docs_v109/methods/messages.getPollVotes.md
2020-03-06 12:24:14 +01:00

1.4 KiB

title description image redirect_from
messages.getPollVotes messages.getPollVotes parameters, return type and example https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png /API_docs/methods/messages_getPollVotes.html

Method: messages.getPollVotes

Back to methods index

Parameters:

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('https://phar.madelineproto.xyz/madeline.php', 'madeline.php');
}
include 'madeline.php';

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

$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, })