payments.updateStarGiftPrice
A collectible gift we own » can be put up for sale on the gift marketplace » with this method, see here » for more info.
func (c *Client) PaymentsUpdateStarGiftPrice(ctx context.Context, request *PaymentsUpdateStarGiftPriceRequest) (UpdatesClass, error)
Calling this method
client.Run(ctx, func(ctx context.Context) error {
api := client.API()
res, err := api.PaymentsUpdateStarGiftPrice(ctx, &tg.PaymentsUpdateStarGiftPriceRequest{
// see Parameters
})
if err != nil {
return err
}
_ = res // UpdatesClass
return nil
})
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
Stargift | InputSavedStarGiftClass | yes | The gift to resell. |
ResellAmount | StarsAmountClass | yes | Resale price of the gift. |
Returns
Possible errors
| Code | Type | Description |
|---|---|---|
| 400 | SAVED_ID_EMPTY | The passed inputSavedStarGiftChat.saved_id is empty. |
| 400 | STARGIFT_NOT_FOUND | The specified gift was not found. |
References
- Official documentation
- Generated Go reference
- TL definition:
payments.updateStarGiftPrice#edbe6ccb