payments.applyGiftCode

Apply a Telegram Premium giftcode »

 Method schema is available as of layer 166. Switch »

Parameters

Name Type Description
slug string The code to apply

Result

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 %d .

Related pages

Giveaways

Telegram channel and supergroup administrators may launch giveaways to randomly distribute Telegram Premium subscriptions and other gifts among their followers, in exchange for boosts.