Link Search Menu Expand Document

Method: premium.applyBoost

Back to methods index

Apply one or more boosts » to a peer.

Parameters:

NameTypeDescriptionRequired
slotsArray of intWhich boost slots to assign to this peer.Optional
peerUsername, chat ID, Update, Message or InputPeerThe peer to boost.Optional

Return type: premium.MyBoosts

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_MyBoosts = $MadelineProto->premium->applyBoost(slots: [$int, $int], peer: $InputPeer, );