payments.craftStarGift
Craft a new collectible gift » by combining 1 to 4 owned collectible gifts of the same base gift type. The passed gifts must all have the same starGiftUnique.gift_id, must be usable for crafting, and must not be blocked by a future can_craft_at timestamp. The first passed gift must not be located on the TON blockchain.
func (c *Client) PaymentsCraftStarGift(ctx context.Context, stargift []InputSavedStarGiftClass) (UpdatesClass, error)
Calling this method
client.Run(ctx, func(ctx context.Context) error {
api := client.API()
res, err := api.PaymentsCraftStarGift(ctx, stargift)
if err != nil {
return err
}
_ = res // UpdatesClass
return nil
})
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
Stargift | []InputSavedStarGiftClass | yes | 1 to 4 owned collectible gifts of the same type to use for crafting ». The first gift's ID is reused if crafting succeeds. |
Returns
Possible errors
| Code | Type | Description |
|---|---|---|
| 400 | SAVED_ID_EMPTY | The passed inputSavedStarGiftChat.saved_id is empty. |
References
- Official documentation
- Generated Go reference
- TL definition:
payments.craftStarGift#b0f9684f