Skip to main content

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

NameTypeRequiredDescription
BoostPeerInputPeerClassThe channel that will start the giveaway

Returns

[]PremiumGiftCodeOption

References