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

Gogram 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.