payments.getPremiumGiftCodeOptions
Obtain a list of Telegram Premium giveaway/gift code » options.
func (c *Client) PaymentsGetPremiumGiftCodeOptions(ctx context.Context, request *PaymentsGetPremiumGiftCodeOptionsRequest) ([]PremiumGiftCodeOption, error)
Calling this method
client.Run(ctx, func(ctx context.Context) error {
api := client.API()
res, err := api.PaymentsGetPremiumGiftCodeOptions(ctx, &tg.PaymentsGetPremiumGiftCodeOptionsRequest{
// see Parameters
})
if err != nil {
return err
}
_ = res // []PremiumGiftCodeOption
return nil
})
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
BoostPeer | InputPeerClass | — | The channel that will start the giveaway |
Returns
References
- Official documentation
- Generated Go reference
- TL definition:
payments.getPremiumGiftCodeOptions#2757ba54