MadelineProtoDocs/docs/API_docs/methods/premium.getBoostsList.md
2024-05-01 14:53:46 +02:00

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

Back to methods index

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, );