InputInvoice
- class pyrogram.raw.base.InputInvoice
An invoice
- Constructors:
This base type has 15 constructors available.
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.
Used to pay for a Telegram Star subscription ».
An invoice contained in a messageMediaInvoice message or paid media ».
{schema}
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.
Used to gift a Telegram Premium subscription to another user, paying with Telegram Stars.
An invoice slug taken from an invoice deep link or from the premium_invoice_slug app config parameter »
Used to buy a Telegram Star Gift, see here » for more info.
{schema}
{schema}
Separately prepay for the upgrade of a gift ».
Used to buy a collectible gift currently up on resale, see here for more info on the full flow.
Used to pay to transfer a collectible gift to another peer, see the gifts » documentation for more info.
Used to pay to upgrade a Gift to a collectible gift, see the collectible gifts » documentation for more info on the full flow.
Used to top up the Telegram Stars balance of the current account or someone else's account, or to start a Telegram Star giveaway ».
TL Schema
Parameter Tree
InputPeerInputPeerEmptyInputPeerSelfInputPeerChatInputPeerUserInputPeerChannelInputPeerUserFromMessageInputPeerChannelFromMessageintInputInvoiceSlugstringInputStorePaymentPurposetrue (optional)true (optional)InputStorePaymentGiftPremiumInputUserInputUserEmptyInputUserSelfInputUserInputUserFromMessagestringlongInputStorePaymentPremiumGiftCodeVector < InputUser >InputUserEmptyInputUserSelfInputUserInputUserFromMessageInputPeer (optional)InputPeerEmptyInputPeerSelfInputPeerChatInputPeerUserInputPeerChannelInputPeerUserFromMessageInputPeerChannelFromMessagestringlongTextWithEntities (optional)TextWithEntitiesInputStorePaymentPremiumGiveawaytrue (optional)true (optional)InputPeerInputPeerEmptyInputPeerSelfInputPeerChatInputPeerUserInputPeerChannelInputPeerUserFromMessageInputPeerChannelFromMessageVector < InputPeer > (optional)InputPeerEmptyInputPeerSelfInputPeerChatInputPeerUserInputPeerChannelInputPeerUserFromMessageInputPeerChannelFromMessageVector < string > (optional)string (optional)longintstringlongInputStorePaymentStarsTopuplongstringlongInputPeer (optional)InputPeerEmptyInputPeerSelfInputPeerChatInputPeerUserInputPeerChannelInputPeerUserFromMessageInputPeerChannelFromMessageInputStorePaymentStarsGiftInputUserInputUserEmptyInputUserSelfInputUserInputUserFromMessagelongstringlongInputStorePaymentStarsGiveawaytrue (optional)true (optional)longInputPeerInputPeerEmptyInputPeerSelfInputPeerChatInputPeerUserInputPeerChannelInputPeerUserFromMessageInputPeerChannelFromMessageVector < InputPeer > (optional)InputPeerEmptyInputPeerSelfInputPeerChatInputPeerUserInputPeerChannelInputPeerUserFromMessageInputPeerChannelFromMessageVector < string > (optional)string (optional)longintstringlongintInputStorePaymentAuthCodetrue (optional)stringstringstringlongPremiumGiftCodeOptionPremiumGiftCodeOptionintintstring (optional)int (optional)stringlongInputStorePaymentPurposetrue (optional)true (optional)InputUserInputUserEmptyInputUserSelfInputUserInputUserFromMessagestringlongVector < InputUser >InputUserEmptyInputUserSelfInputUserInputUserFromMessageInputPeer (optional)InputPeerEmptyInputPeerSelfInputPeerChatInputPeerUserInputPeerChannelInputPeerUserFromMessageInputPeerChannelFromMessagestringlongTextWithEntities (optional)TextWithEntitiestrue (optional)true (optional)InputPeerInputPeerEmptyInputPeerSelfInputPeerChatInputPeerUserInputPeerChannelInputPeerUserFromMessageInputPeerChannelFromMessageVector < InputPeer > (optional)InputPeerEmptyInputPeerSelfInputPeerChatInputPeerUserInputPeerChannelInputPeerUserFromMessageInputPeerChannelFromMessageVector < string > (optional)string (optional)longintstringlonglongstringlongInputPeer (optional)InputPeerEmptyInputPeerSelfInputPeerChatInputPeerUserInputPeerChannelInputPeerUserFromMessageInputPeerChannelFromMessageInputUserInputUserEmptyInputUserSelfInputUserInputUserFromMessagelongstringlongtrue (optional)true (optional)longInputPeerInputPeerEmptyInputPeerSelfInputPeerChatInputPeerUserInputPeerChannelInputPeerUserFromMessageInputPeerChannelFromMessageVector < InputPeer > (optional)InputPeerEmptyInputPeerSelfInputPeerChatInputPeerUserInputPeerChannelInputPeerUserFromMessageInputPeerChannelFromMessageVector < string > (optional)string (optional)longintstringlonginttrue (optional)stringstringstringlongstringtrue (optional)true (optional)InputPeerInputPeerEmptyInputPeerSelfInputPeerChatInputPeerUserInputPeerChannelInputPeerUserFromMessageInputPeerChannelFromMessagelongTextWithEntities (optional)TextWithEntitiesstringVector < MessageEntity >MessageEntityUnknownMessageEntityMentionMessageEntityHashtagMessageEntityBotCommandMessageEntityUrlMessageEntityEmailMessageEntityBoldMessageEntityItalicMessageEntityCodeMessageEntityPreMessageEntityTextUrlMessageEntityMentionNameMessageEntityPhoneMessageEntityCashtagMessageEntityUnderlineMessageEntityStrikeMessageEntityBankCardMessageEntitySpoilerMessageEntityCustomEmojiMessageEntityBlockquotetrue (optional)InputSavedStarGiftInputSavedStarGiftUserintInputSavedStarGiftChatInputPeerInputPeerEmptyInputPeerSelfInputPeerChatInputPeerUserInputPeerChannelInputPeerUserFromMessageInputPeerChannelFromMessagelongInputSavedStarGiftSlugstringInputSavedStarGiftInputSavedStarGiftUserintInputSavedStarGiftChatInputPeerInputPeerEmptyInputPeerSelfInputPeerChatInputPeerUserInputPeerChannelInputPeerUserFromMessageInputPeerChannelFromMessagelongInputSavedStarGiftSlugstringInputPeerInputPeerEmptyInputPeerSelfInputPeerChatInputPeerUserInputPeerChannelInputPeerUserFromMessageInputUserInputUserEmptyInputUserSelfInputUserInputUserFromMessageintTextWithEntities (optional)TextWithEntitiesstringVector < MessageEntity >MessageEntityUnknownMessageEntityMentionMessageEntityHashtagMessageEntityBotCommandMessageEntityUrlMessageEntityEmailMessageEntityBoldMessageEntityItalicMessageEntityCodeMessageEntityPreMessageEntityTextUrlMessageEntityMentionNameMessageEntityPhoneMessageEntityCashtagMessageEntityUnderlineMessageEntityStrikeMessageEntityBankCardMessageEntitySpoilerMessageEntityCustomEmojiMessageEntityBlockquoteInputUserInputUserEmptyInputUserSelfInputUserInputUserFromMessagelongtrue (optional)stringInputPeerInputPeerEmptyInputPeerSelfInputPeerChatInputPeerUserInputPeerChannelInputPeerUserFromMessageInputPeerInputPeerEmptyInputPeerSelfInputPeerChatInputPeerUserInputPeerChannelInputPeerUserFromMessageInputPeerChannelFromMessagestringInputStorePaymentPurposetrue (optional)true (optional)InputUserInputUserEmptyInputUserSelfInputUserInputUserFromMessagestringlongVector < InputUser >InputUserEmptyInputUserSelfInputUserInputUserFromMessageInputPeer (optional)InputPeerEmptyInputPeerSelfInputPeerChatInputPeerUserInputPeerChannelInputPeerUserFromMessageInputPeerChannelFromMessagestringlongTextWithEntities (optional)TextWithEntitiestrue (optional)true (optional)InputPeerInputPeerEmptyInputPeerSelfInputPeerChatInputPeerUserInputPeerChannelInputPeerUserFromMessageInputPeerChannelFromMessageVector < InputPeer > (optional)InputPeerEmptyInputPeerSelfInputPeerChatInputPeerUserInputPeerChannelInputPeerUserFromMessageInputPeerChannelFromMessageVector < string > (optional)string (optional)longintstringlonglongstringlongInputPeer (optional)InputPeerEmptyInputPeerSelfInputPeerChatInputPeerUserInputPeerChannelInputPeerUserFromMessageInputPeerChannelFromMessageInputUserInputUserEmptyInputUserSelfInputUserInputUserFromMessagelongstringlongtrue (optional)true (optional)longInputPeerInputPeerEmptyInputPeerSelfInputPeerChatInputPeerUserInputPeerChannelInputPeerUserFromMessageInputPeerChannelFromMessageVector < InputPeer > (optional)InputPeerEmptyInputPeerSelfInputPeerChatInputPeerUserInputPeerChannelInputPeerUserFromMessageInputPeerChannelFromMessageVector < string > (optional)string (optional)longintstringlonginttrue (optional)stringstringstringlongInputSavedStarGiftInputSavedStarGiftUserintInputSavedStarGiftChatInputPeerInputPeerEmptyInputPeerSelfInputPeerChatInputPeerUserInputPeerChannelInputPeerUserFromMessageInputPeerChannelFromMessagelongInputSavedStarGiftSlugstringtrue (optional)true (optional)InputPeer (optional)InputPeerEmptyInputPeerSelfInputPeerChatInputPeerUserInputPeerChannelInputPeerUserFromMessagelonglongTextWithEntities (optional)TextWithEntities