Layer 220
InputStorePaymentPurpose
Abstract type representing one of 8 possible constructors.
Type
Available Constructors
In Gogram, this type is represented as tg.InputStorePaymentPurpose interface.
Use any of the following constructors:
InputStorePaymentPremiumSubscription
Info about a Telegram Premium purchase
InputStorePaymentPremiumGiftCode
Used to gift Telegram Premium subscriptions only to some specific subscribers of a channel/supergrou
InputStorePaymentGiftPremium
Info about a gifted Telegram Premium purchase
InputStorePaymentPremiumGiveaway
Used to pay for a giveaway, see here for more info.
InputStorePaymentStarsTopup
Used to top up the Telegram Stars balance of the current account.
InputStorePaymentStarsGift
Used to gift Telegram Stars to a friend.
InputStorePaymentStarsGiveaway
Used to pay for a star giveaway, see here for more info.
InputStorePaymentAuthCode
Indicates payment for a login code.
Gogram Example
// InputStorePaymentPurpose is an interface type // You can use any of the following constructors: var _ tg.InputStorePaymentPurpose = &tg.InputStorePaymentPremiumSubscription{} var _ tg.InputStorePaymentPurpose = &tg.InputStorePaymentPremiumGiftCode{} var _ tg.InputStorePaymentPurpose = &tg.InputStorePaymentGiftPremium{} var _ tg.InputStorePaymentPurpose = &tg.InputStorePaymentPremiumGiveaway{} var _ tg.InputStorePaymentPurpose = &tg.InputStorePaymentStarsTopup{} // ... and 3 more constructors