Layer 220
method Users
payments.checkGiftCode#8e51b4c1 slug:string = payments.CheckedGiftCode;

Parameters

Name Type Description
Slug string The giftcode to check

Possible Errors

Code Type Description
400 GIFT_SLUG_EXPIRED The specified gift slug has expired.
400 GIFT_SLUG_INVALID The specified slug is invalid.

Gogram Example

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