Layer 224
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

Updates

Gogram Example

// PaymentsLaunchPrepaidGiveaway - positional arguments
result, err := client.PaymentsLaunchPrepaidGiveaway(&tg.InputPeerUser{UserID: int64(777000)}, int64(1234567890), &tg.InputStorePaymentPurpose{})
if err != nil {
    // handle error
}
// result is *tg.Updates

Possible Errors

Code Type Description
400 PEER_ID_INVALID The provided peer id is invalid.