payments.getStarGifts
Get a list of available gifts, see here » for more info.
func (c *Client) PaymentsGetStarGifts(ctx context.Context, hash int) (PaymentsStarGiftsClass, error)
Calling this method
client.Run(ctx, func(ctx context.Context) error {
api := client.API()
res, err := api.PaymentsGetStarGifts(ctx, hash)
if err != nil {
return err
}
_ = res // PaymentsStarGiftsClass
return nil
})
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
Hash | int | yes | Hash used for caching, for more info click here.The hash may be generated locally by using the ids of the returned or stored sticker starGifts. |
Returns
References
- Official documentation
- Generated Go reference
- TL definition:
payments.getStarGifts#c4563590