Skip to main content

InputStorePaymentPurpose

This is a boxed type (a TL class): the Go interface tg.InputStorePaymentPurposeClass, implemented by the constructors below. A value of this type is one of them — switch on the concrete type to handle it.

switch v := value.(type) {
case *tg.InputStorePaymentAuthCode: // inputStorePaymentAuthCode
case *tg.InputStorePaymentGiftPremium: // inputStorePaymentGiftPremium
case *tg.InputStorePaymentPremiumGiftCode: // inputStorePaymentPremiumGiftCode
case *tg.InputStorePaymentPremiumGiveaway: // inputStorePaymentPremiumGiveaway
case *tg.InputStorePaymentPremiumSubscription: // inputStorePaymentPremiumSubscription
case *tg.InputStorePaymentStarsGift: // inputStorePaymentStarsGift
case *tg.InputStorePaymentStarsGiveaway: // inputStorePaymentStarsGiveaway
case *tg.InputStorePaymentStarsTopup: // inputStorePaymentStarsTopup
}

Constructors

ConstructorTL name
InputStorePaymentAuthCodeinputStorePaymentAuthCode
InputStorePaymentGiftPremiuminputStorePaymentGiftPremium
InputStorePaymentPremiumGiftCodeinputStorePaymentPremiumGiftCode
InputStorePaymentPremiumGiveawayinputStorePaymentPremiumGiveaway
InputStorePaymentPremiumSubscriptioninputStorePaymentPremiumSubscription
InputStorePaymentStarsGiftinputStorePaymentStarsGift
InputStorePaymentStarsGiveawayinputStorePaymentStarsGiveaway
InputStorePaymentStarsTopupinputStorePaymentStarsTopup

References