Method: premium.getBoostsList
Obtains info about the boosts that were applied to a certain channel (admins only)
Parameters:
Name | Type | Description | Required |
---|---|---|---|
gifts | Bool | Whether to return only info about boosts received from gift codes and giveaways created by the channel » | Optional |
peer | Username, chat ID, Update, Message or InputPeer | The channel | Optional |
offset | string | Offset for pagination, obtained from premium.boostsList.next_offset | Optional |
limit | int | Maximum number of results to return, see pagination | Optional |
Return type: premium.BoostsList
Can bots use this method: NO
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();
$premium_BoostsList = $MadelineProto->premium->getBoostsList(gifts: $Bool, peer: $InputPeer, offset: 'string', limit: $int, );