Skip to main content

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

NameTypeRequiredDescription
HashintyesHash 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

PaymentsStarGiftsClass

References