Link Search Menu Expand Document

Method: premium.applyBoost

Back to methods index

Apply one or more boosts » to a peer.


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

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

$premium_MyBoosts = $MadelineProto->premium->applyBoost(slots: [$int, $int], peer: $InputPeer, );