Layer 224
method Users
payments.saveStarGift#2a2a697c flags:# unsave:flags.0?true stargift:InputSavedStarGift = Bool;

Parameters

Name Type Description
Unsave flags.0?true If set, hides the gift from our profile.
Stargift InputSavedStarGift The gift to display or remove.

Returns

Bool

Gogram Example

// PaymentsSaveStarGift - using Params struct
result, err := client.PaymentsSaveStarGift(&tg.PaymentsSaveStarGiftParams{
    Stargift: &tg.InputSavedStarGift{},

    // Optional fields:
    // Unsave: true,
})
if err != nil {
    // handle error
}
// result is *tg.Bool

Possible Errors

Code Type Description
400 MESSAGE_ID_INVALID The provided message id is invalid.
400 SAVED_ID_EMPTY The passed input Saved Star Gift Chat. saved_id is empty.
400 STARGIFT_OWNER_INVALID You cannot transfer or sell a gift owned by another user.
400 USER_ID_INVALID The provided user ID is invalid.