Layer 220
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 |
|---|---|---|
| Flags | # | Flags, see TL conditional fields |
| 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.BoostsListPossible 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. |
Gogram Example
// PremiumGetBoostsList - using Params struct result, err := client.PremiumGetBoostsList(&tg.PremiumGetBoostsListParams{ Peer: &tg.InputPeerUser{UserID: int64(123456789)}, Offset: "...", Limit: 0, // Optional fields: // Gifts: true, }) if err != nil { // handle error } // result is *tg.PremiumBoostsList