Link Search Menu Expand Document

Method: premium.getBoostsList

Back to methods index

Obtains info about the boosts that were applied to a certain channel (admins only)

Parameters:

NameTypeDescriptionRequired
giftsBoolWhether to return only info about boosts received from gift codes and giveaways created by the channel »Optional
peerUsername, chat ID, Update, Message or InputPeerThe channelOptional
offsetstringOffset for pagination, obtained from premium.boostsList.next_offsetOptional
limitintMaximum number of results to return, see paginationOptional

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