Layer 224
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.CheckedGiftCodeGogram Example
// PaymentsCheckGiftCode - positional arguments result, err := client.PaymentsCheckGiftCode("Hello, World!") if err != nil { // handle error } // result is *tg.PaymentsCheckedGiftCode
Possible Errors
| Code | Type | Description |
|---|---|---|
| 400 | GIFT_SLUG_EXPIRED | The specified gift slug has expired. |
| 400 | GIFT_SLUG_INVALID | The specified slug is invalid. |