Skip to main content

premium.getBoostsList

Obtains info about the boosts that were applied to a certain channel or supergroup (admins only)

func (c *Client) PremiumGetBoostsList(ctx context.Context, request *PremiumGetBoostsListRequest) (*PremiumBoostsList, error)

Calling this method​

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

res, err := api.PremiumGetBoostsList(ctx, &tg.PremiumGetBoostsListRequest{
// see Parameters
})
if err != nil {
return err
}
_ = res // *PremiumBoostsList
return nil
})

Parameters​

NameTypeRequiredDescription
Giftsbool—Whether to return only info about boosts received from gift codes and giveaways created by the channel/supergroup »
PeerInputPeerClassyesThe channel/supergroup
OffsetstringyesOffset for pagination, obtained from premium.boostsList.next_offset
LimitintyesMaximum number of results to return, see pagination

Returns​

*PremiumBoostsList

Possible errors​

CodeTypeDescription
400CHAT_ADMIN_REQUIREDYou must be an admin in this chat to do this.
400PEER_ID_INVALIDThe provided peer id is invalid.

References​