Layer 224
PremiumGetBoostsList
Obtains info about the boosts that were applied to a certain channel or supergroup (admins only)
method
Users
premium.getBoostsList#60f67660 flags:# gifts:flags.0?true peer:InputPeer offset:string limit:int = premium.BoostsList;
Parameters
| Name | Type | Description |
|---|---|---|
| Gifts | flags.0?true | Whether to return only info about boosts received from gift codes and giveaways created by the channel/supergroup |
| Peer | InputPeer | The channel/supergroup |
| Offset | string | Offset for pagination, obtained from premium. boosts List. next_offset |
| Limit | int | Maximum number of results to return, see pagination |
Returns
premium.BoostsListGogram Example
// PremiumGetBoostsList - using Params struct result, err := client.PremiumGetBoostsList(&tg.PremiumGetBoostsListParams{ Peer: &tg.InputPeerUser{UserID: int64(777000)}, Offset: "Hello, World!", Limit: 42, // Optional fields: // Gifts: true, }) if err != nil { // handle error } // result is *tg.PremiumBoostsList
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. |