Layer 227
PremiumApplyBoost
Apply one or more boosts to a peer.
method
Users
premium.applyBoost#6b7da746 flags:# slots:flags.0?Vector<int> peer:InputPeer = premium.MyBoosts;
Parameters
| Name | Type | Description |
|---|---|---|
| Slots | flags .0? Vector < int > | Which boost slots to assign to this peer. |
| Peer | InputPeer | The peer to boost. |
Returns
premium.MyBoostsGogram Example
// PremiumApplyBoost - positional arguments result, err := client.PremiumApplyBoost(nil, &tg.InputPeerUser{UserID: int64(777000)}) if err != nil { // handle error } // result is *tg.PremiumMyBoosts
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. |