Skip to main content

premium.applyBoost

Apply one or more boosts » to a peer.

func (c *Client) PremiumApplyBoost(ctx context.Context, request *PremiumApplyBoostRequest) (*PremiumMyBoosts, error)

Calling this method

client.Run(ctx, func(ctx context.Context) error {
api := client.API()

res, err := api.PremiumApplyBoost(ctx, &tg.PremiumApplyBoostRequest{
// see Parameters
})
if err != nil {
return err
}
_ = res // *PremiumMyBoosts
return nil
})

Parameters

NameTypeRequiredDescription
Slots[]intWhich boost slots to assign to this peer.
PeerInputPeerClassyesThe peer to boost.

Returns

*PremiumMyBoosts

Possible errors

CodeTypeDescription
400BOOSTS_EMPTYNo boost slots were specified.
400PEER_ID_INVALIDThe provided peer id is invalid.
400SLOTS_EMPTYThe specified slot list is empty.

References