Layer 220
method Users
premium.applyBoost#6b7da746 flags:# slots:flags.0?Vector<int> peer:InputPeer = premium.MyBoosts;

Parameters

Name Type Description
Flags # Flags, see TL conditional fields
Slots Vector<int> Which boost slots to assign to this peer.
Peer InputPeer The peer to boost.

Possible Errors

Code Type Description
400 BOOSTS_EMPTY No boost slots were specified.
400 PEER_ID_INVALID The provided peer id is invalid.
400 SLOTS_EMPTY The specified slot list is empty.

Gogram Example

// PremiumApplyBoost - using Params struct
result, err := client.PremiumApplyBoost(&tg.PremiumApplyBoostParams{
    Peer: &tg.InputPeerUser{UserID: int64(123456789)},

    // Optional fields:
    // Slots: []int{},
})
if err != nil {
    // handle error
}
// result is *tg.PremiumMyBoosts