An invoice
inputInvoiceMessage#c5b56859 peer:InputPeer msg_id:int = InputInvoice;
inputInvoiceSlug#c326caef slug:string = InputInvoice;
inputInvoicePremiumGiftCode#98986c0d purpose:InputStorePaymentPurpose option:PremiumGiftCodeOption = InputInvoice;
inputInvoiceStars#1da33ad8 option:StarsTopupOption = InputInvoice;
| Constructor | Description |
|---|---|
| inputInvoiceMessage | An invoice contained in a messageMediaInvoice message or paid media ». |
| inputInvoiceSlug | An invoice slug taken from an invoice deep link or from the premium_invoice_slug app config parameter » |
| inputInvoicePremiumGiftCode | Used if the user wishes to start a channel/supergroup giveaway or send some giftcodes to members of a channel/supergroup, in exchange for boosts. |
| inputInvoiceStars | Used to top up the Telegram Stars balance of the current account or someone else's account, or to start a Telegram Star giveaway ». |
| inputInvoiceChatInviteSubscription | Used to pay for a Telegram Star subscription ». |
| inputInvoiceStarGift | Used to buy a Telegram Star Gift, see here » for more info. |
| inputInvoiceStarGiftUpgrade | Used to pay to upgrade a Gift to a collectible gift, see the collectible gifts » documentation for more info on the full flow. |
| inputInvoiceStarGiftTransfer | Used to pay to transfer a collectible gift to another peer, see the gifts » documentation for more info. |
| inputInvoicePremiumGiftStars | Used to gift a Telegram Premium subscription to another user, paying with Telegram Stars. |
| inputInvoiceBusinessBotTransferStars | Transfer stars from the balance of a user account connected to a business bot, to the balance of the business bot, see here » for more info on the full flow. |
| inputInvoiceStarGiftResale | Used to buy a collectible gift currently up on resale, see here for more info on the full flow. |
| inputInvoiceStarGiftPrepaidUpgrade | Separately prepay for the upgrade of a gift ». |
| inputInvoicePremiumAuthCode | Used to pay for login codes, in case of high cost of SMS verification codes for the user's country/provider, see here » for more info. |
| inputInvoiceStarGiftDropOriginalDetails | Used to pay for for the removal of the starGiftAttributeOriginalDetails attribute from a collectible gift, see here » for the full flow. |
| inputInvoiceStarGiftAuctionBid |