Launch a prepaid giveaway ».
Method schema is available as of layer 166. Switch »
Name | Type | Description |
---|---|---|
peer | InputPeer | The peer where to launch the giveaway. |
giveaway_id | long | The prepaid giveaway ID. |
purpose | InputStorePaymentPurpose | Giveway parameters |
Code | Type | Description |
---|---|---|
400 | PEER_ID_INVALID | The provided peer id 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.