Layer 220
method Users
payments.getStarsGiftOptions#d3c96bc8 flags:# user_id:flags.0?InputUser = Vector<StarsGiftOption>;

Parameters

Name Type Description
Flags # Flags, see TL conditional fields
UserId flags.0?InputUser Receiver of the gift (optional).

Returns

Vector

Possible Errors

Code Type Description
400 INPUT_USER_DEACTIVATED The specified user was deleted.
400 USER_GIFT_UNAVAILABLE Gifts are not available in the current region ( stars_gifts_enabled is equal to false).
400 USER_ID_INVALID The provided user ID is invalid.

Gogram Example

// PaymentsGetStarsGiftOptions - using Params struct
result, err := client.PaymentsGetStarsGiftOptions(&tg.PaymentsGetStarsGiftOptionsParams{

    // Optional fields:
    // UserId: &tg.InputUserSelf{},
})
if err != nil {
    // handle error
}
// result is *tg.Vector