payments.getCraftStarGifts
Obtain owned collectible gifts » of a specific type that can be used for crafting ».
func (c *Client) PaymentsGetCraftStarGifts(ctx context.Context, request *PaymentsGetCraftStarGiftsRequest) (*PaymentsSavedStarGifts, error)
Calling this method
client.Run(ctx, func(ctx context.Context) error {
api := client.API()
res, err := api.PaymentsGetCraftStarGifts(ctx, &tg.PaymentsGetCraftStarGiftsRequest{
// see Parameters
})
if err != nil {
return err
}
_ = res // *PaymentsSavedStarGifts
return nil
})
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
GiftID | int64 | yes | Identifier of the base gift type, equal to starGiftUnique.gift_id of the first selected gift. |
Offset | string | yes | Offset for pagination. |
Limit | int | yes | Maximum number of results to return, see pagination |
Returns
Possible errors
| Code | Type | Description |
|---|---|---|
| 400 | STARGIFT_INVALID | The passed gift is invalid. |
References
- Official documentation
- Generated Go reference
- TL definition:
payments.getCraftStarGifts#fd05dd00