Layer 220
PaymentsGetPremiumGiftCodeOptions
Obtain a list of Telegram Premium giveaway/gift code options.
method
Users
payments.getPremiumGiftCodeOptions#2757ba54 flags:# boost_peer:flags.0?InputPeer = Vector<PremiumGiftCodeOption>;
Parameters
| Name | Type | Description |
|---|---|---|
| Flags | # | Flags, see TL conditional fields |
| BoostPeer | flags.0?InputPeer | The channel that will start the giveaway |
Returns
VectorGogram Example
// PaymentsGetPremiumGiftCodeOptions - using Params struct result, err := client.PaymentsGetPremiumGiftCodeOptions(&tg.PaymentsGetPremiumGiftCodeOptionsParams{ // Optional fields: // BoostPeer: &tg.InputPeerUser{UserID: int64(123456789)}, }) if err != nil { // handle error } // result is *tg.Vector