premium.getUserBoosts
Returns the lists of boost that were applied to a channel/supergroup by a specific user (admins only)
func (c *Client) PremiumGetUserBoosts(ctx context.Context, request *PremiumGetUserBoostsRequest) (*PremiumBoostsList, error)
Calling this method
client.Run(ctx, func(ctx context.Context) error {
api := client.API()
res, err := api.PremiumGetUserBoosts(ctx, &tg.PremiumGetUserBoostsRequest{
// see Parameters
})
if err != nil {
return err
}
_ = res // *PremiumBoostsList
return nil
})
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
Peer | InputPeerClass | yes | The channel/supergroup |
UserID | InputUserClass | yes | The user |
Returns
Possible errors
| Code | Type | Description |
|---|---|---|
| 400 | PEER_ID_INVALID | The provided peer id is invalid. |
References
- Official documentation
- Generated Go reference
- TL definition:
premium.getUserBoosts#39854d1f