Layer 224
InputInvoice
Abstract type representing one of 15 possible constructors.
Type
Available Constructors
In Gogram, this type is represented as tg.InputInvoice interface.
Use any of the following constructors:
InputInvoiceSlug
An invoice slug taken from an invoice deep link or from the premium_invoice_slug app config paramete
InputInvoicePremiumGiftCode
Used if the user wishes to start a channel/supergroup giveaway or send some giftcodes to members of
InputInvoiceMessage
An invoice contained in a message Media Invoice message or paid media.
InputInvoiceChatInviteSubscription
Used to pay for a Telegram Star subscription.
InputInvoiceStars
Used to top up the Telegram Stars balance of the current account or someone else's account, or to st
InputInvoiceStarGiftUpgrade
Used to pay to upgrade a Gift to a collectible gift, see the collectible gifts documentation for
InputInvoiceStarGift
Used to buy a Telegram Star Gift, see here for more info.
InputInvoiceBusinessBotTransferStars
Transfer stars from the balance of a user account connected to a business bot, to the balance of th
InputInvoiceStarGiftTransfer
Used to pay to transfer a collectible gift to another peer, see the gifts documentation for more
InputInvoiceStarGiftResale
Used to buy a collectible gift currently up on resale, see here for more info on the full flow.
InputInvoicePremiumGiftStars
Used to gift a Telegram Premium subscription to another user, paying with Telegram Stars.
InputInvoiceStarGiftPrepaidUpgrade
Separately prepay for the upgrade of a gift.
InputInvoiceStarGiftDropOriginalDetails
Used to pay for for the removal of the star Gift Attribute Original Details attribute from a collectible
InputInvoicePremiumAuthCode
Used to pay for login codes, in case of high cost of SMS verification codes for the user's country/p
InputInvoiceStarGiftAuctionBid
Layer 223 1 – Base layer 2 – New userpic notifications 3 – Send message can trigger link change 4 –
Gogram Example
// InputInvoice is an interface type // You can use any of the following constructors: var _ tg.InputInvoice = &tg.InputInvoiceSlug{} var _ tg.InputInvoice = &tg.InputInvoicePremiumGiftCode{} var _ tg.InputInvoice = &tg.InputInvoiceMessage{} var _ tg.InputInvoice = &tg.InputInvoiceChatInviteSubscription{} var _ tg.InputInvoice = &tg.InputInvoiceStars{} // ... and 10 more constructors