Skip to main content

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

NameTypeRequiredDescription
StargiftInputSavedStarGiftClassyesThe gift to resell.
ResellAmountStarsAmountClassyesResale price of the gift.

Returns

UpdatesClass

Possible errors

CodeTypeDescription
400SAVED_ID_EMPTYThe passed inputSavedStarGiftChat.saved_id is empty.
400STARGIFT_NOT_FOUNDThe specified gift was not found.

References