Obtain information about a Telegram Premium giftcode »
payments.checkedGiftCode#b722f158 flags:# via_giveaway:flags.2?true from_id:Peer giveaway_msg_id:flags.3?int to_id:flags.0?long date:int months:int used_date:flags.1?int chats:Vector<Chat> users:Vector<User> = payments.CheckedGiftCode;
---functions---
payments.checkGiftCode#8e51b4c1 slug:string = payments.CheckedGiftCode;
Name | Type | Description |
---|---|---|
slug | string | The giftcode to check |
Code | Type | Description |
---|---|---|
400 | GIFT_SLUG_EXPIRED | The specified gift slug has expired. |
400 | GIFT_SLUG_INVALID | The specified slug is invalid. |
Telegram channel and supergroup administrators may launch giveaways to randomly distribute Telegram Premium subscriptions and other gifts among their followers, in exchange for boosts.