Layer 220
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

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.

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