mirror of
https://github.com/danog/MadelineProtoDocs.git
synced 2024-12-11 00:30:26 +01:00
1.8 KiB
1.8 KiB
title | description | grand_parent | parent | image | redirect_from |
---|---|---|---|---|---|
premium.getBoostsList | Obtains info about the boosts that were applied to a certain channel (admins only) | Telegram RPC API | Methods | https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png | /API_docs/methods/premium_getBoostsList.html |
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, );