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)


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('', 'madeline.php');
include 'madeline.php';

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

$premium_BoostsList = $MadelineProto->premium->getBoostsList(gifts: $Bool, peer: $InputPeer, offset: 'string', limit: $int, );