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
| Name | Type | Required | Description |
|---|---|---|---|
Gifts | bool | — | Whether to return only info about boosts received from gift codes and giveaways created by the channel/supergroup » |
Peer | InputPeerClass | yes | The channel/supergroup |
Offset | string | yes | Offset for pagination, obtained from premium.boostsList.next_offset |
Limit | int | yes | Maximum number of results to return, see pagination |
Returns
Possible errors
| Code | Type | Description |
|---|---|---|
| 400 | CHAT_ADMIN_REQUIRED | You must be an admin in this chat to do this. |
| 400 | PEER_ID_INVALID | The provided peer id is invalid. |
References
- Official documentation
- Generated Go reference
- TL definition:
premium.getBoostsList#60f67660