Layer 220
method Users
payments.applyGiftCode#f6e26854 slug:string = Updates;

Parameters

Name Type Description
Slug string The code to apply

Returns

Updates

Possible Errors

Code Type Description
400 GIFT_SLUG_EXPIRED The specified gift slug has expired.
400 GIFT_SLUG_INVALID The specified slug is invalid.
420 PREMIUM_SUB_ACTIVE_UNTIL_%d You already have a premium subscription active until unixtime <number>.

Gogram Example

// PaymentsApplyGiftCode - positional arguments
result, err := client.PaymentsApplyGiftCode("...")
if err != nil {
    // handle error
}
// result is *tg.Updates