Layer 220
PaymentsLaunchPrepaidGiveaway
Launch a prepaid giveaway.
method
Users
payments.launchPrepaidGiveaway#5ff58f20 peer:InputPeer giveaway_id:long purpose:InputStorePaymentPurpose = Updates;
Parameters
| Name | Type | Description |
|---|---|---|
| Peer | InputPeer | The peer where to launch the giveaway. |
| GiveawayId | long | The prepaid giveaway ID. |
| Purpose | InputStorePaymentPurpose | Giveway parameters |
Returns
UpdatesPossible Errors
| Code | Type | Description |
|---|---|---|
| 400 | PEER_ID_INVALID | The provided peer id is invalid. |
Gogram Example
// PaymentsLaunchPrepaidGiveaway - positional arguments result, err := client.PaymentsLaunchPrepaidGiveaway(&tg.InputPeerUser{UserID: int64(123456789)}, int64(0), &tg.InputStorePaymentPurpose{}) if err != nil { // handle error } // result is *tg.Updates