Layer 220
PaymentsCheckGiftCode
Obtain information about a Telegram Premium giftcode
method
Users
payments.checkGiftCode#8e51b4c1 slug:string = payments.CheckedGiftCode;
Parameters
| Name | Type | Description |
|---|---|---|
| Slug | string | The giftcode to check |
Returns
payments.CheckedGiftCodePossible 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