InputInvoicePremiumAuthCode

class pyrogram.raw.types.InputInvoicePremiumAuthCode

{schema}

Constructor of InputInvoice.

Details:
  • Layer: 227

  • ID: 3E77F614

Parameters:

purpose (InputStorePaymentPurpose)

TL Schema

inputInvoicePremiumAuthCode#3e77f614
purpose:InputStorePaymentPurpose

= InputInvoice

Parameter Tree

InputInvoicePremiumAuthCode
└── purpose → InputStorePaymentPurpose
│ ├── restore → true (optional)
│ └── upgrade → true (optional)
│ ├── user_id → InputUser
│ │ ├── InputUserEmpty
│ │ ├── InputUserSelf
│ │ ├── InputUser
│ │ └── InputUserFromMessage
│ ├── currency → string
│ └── amount → long
│ ├── users → Vector < InputUser >
│ │ ├── InputUserEmpty
│ │ ├── InputUserSelf
│ │ ├── InputUser
│ │ │ ├── user_id → long
│ │ │ └── access_hash → long
│ │ └── InputUserFromMessage
│ │ ├── peer → InputPeer
│ │ │ ├── InputPeerEmpty
│ │ │ ├── InputPeerSelf
│ │ │ ├── InputPeerChat
│ │ │ ├── InputPeerUser
│ │ │ ├── InputPeerChannel
│ │ │ ├── InputPeerUserFromMessage
│ │ │ └── InputPeerChannelFromMessage
│ │ ├── msg_id → int
│ │ └── user_id → long
│ ├── boost_peer → InputPeer (optional)
│ │ ├── InputPeerEmpty
│ │ ├── InputPeerSelf
│ │ ├── InputPeerChat
│ │ ├── InputPeerUser
│ │ ├── InputPeerChannel
│ │ ├── InputPeerUserFromMessage
│ │ └── InputPeerChannelFromMessage
│ ├── currency → string
│ ├── amount → long
│ └── message → TextWithEntities (optional)
│ └── TextWithEntities
│ ├── text → string
│ └── entities → Vector < MessageEntity >
│ ├── MessageEntityUnknown
│ ├── MessageEntityMention
│ ├── MessageEntityHashtag
│ ├── MessageEntityUrl
│ ├── MessageEntityEmail
│ ├── MessageEntityBold
│ ├── MessageEntityItalic
│ ├── MessageEntityCode
│ ├── MessageEntityPre
│ ├── MessageEntityTextUrl
│ ├── MessageEntityPhone
│ ├── MessageEntityCashtag
│ ├── MessageEntityStrike
│ ├── MessageEntityBankCard
│ ├── MessageEntitySpoiler
│ ├── only_new_subscribers → true (optional)
│ ├── winners_are_visible → true (optional)
│ ├── boost_peer → InputPeer
│ │ ├── InputPeerEmpty
│ │ ├── InputPeerSelf
│ │ ├── InputPeerChat
│ │ ├── InputPeerUser
│ │ ├── InputPeerChannel
│ │ ├── InputPeerUserFromMessage
│ │ └── InputPeerChannelFromMessage
│ ├── additional_peers → Vector < InputPeer > (optional)
│ │ ├── InputPeerEmpty
│ │ ├── InputPeerSelf
│ │ ├── InputPeerChat
│ │ ├── InputPeerUser
│ │ │ ├── user_id → long
│ │ │ └── access_hash → long
│ │ ├── InputPeerChannel
│ │ │ ├── channel_id → long
│ │ │ └── access_hash → long
│ │ ├── InputPeerUserFromMessage
│ │ │ ├── peer → InputPeer
│ │ │ │ ├── InputPeerEmpty
│ │ │ │ ├── InputPeerSelf
│ │ │ │ ├── InputPeerChat
│ │ │ │ ├── InputPeerUser
│ │ │ │ ├── InputPeerChannel
│ │ │ │ ├── InputPeerUserFromMessage
│ │ │ │ └── InputPeerChannelFromMessage
│ │ │ ├── msg_id → int
│ │ │ └── user_id → long
│ │ └── InputPeerChannelFromMessage
│ │ ├── peer → InputPeer
│ │ │ ├── InputPeerEmpty
│ │ │ ├── InputPeerSelf
│ │ │ ├── InputPeerChat
│ │ │ ├── InputPeerUser
│ │ │ ├── InputPeerChannel
│ │ │ ├── InputPeerUserFromMessage
│ │ │ └── InputPeerChannelFromMessage
│ │ ├── msg_id → int
│ │ └── channel_id → long
│ ├── countries_iso2 → Vector < string > (optional)
│ ├── prize_description → string (optional)
│ ├── random_id → long
│ ├── until_date → int
│ ├── currency → string
│ └── amount → long
│ ├── stars → long
│ ├── currency → string
│ ├── amount → long
│ └── spend_purpose_peer → InputPeer (optional)
│ ├── InputPeerEmpty
│ ├── InputPeerSelf
│ ├── InputPeerChat
│ ├── InputPeerUser
│ ├── InputPeerChannel
│ ├── user_id → InputUser
│ │ ├── InputUserEmpty
│ │ ├── InputUserSelf
│ │ ├── InputUser
│ │ └── InputUserFromMessage
│ ├── stars → long
│ ├── currency → string
│ └── amount → long
│ ├── only_new_subscribers → true (optional)
│ ├── winners_are_visible → true (optional)
│ ├── stars → long
│ ├── boost_peer → InputPeer
│ │ ├── InputPeerEmpty
│ │ ├── InputPeerSelf
│ │ ├── InputPeerChat
│ │ ├── InputPeerUser
│ │ ├── InputPeerChannel
│ │ ├── InputPeerUserFromMessage
│ │ └── InputPeerChannelFromMessage
│ ├── additional_peers → Vector < InputPeer > (optional)
│ │ ├── InputPeerEmpty
│ │ ├── InputPeerSelf
│ │ ├── InputPeerChat
│ │ ├── InputPeerUser
│ │ │ ├── user_id → long
│ │ │ └── access_hash → long
│ │ ├── InputPeerChannel
│ │ │ ├── channel_id → long
│ │ │ └── access_hash → long
│ │ ├── InputPeerUserFromMessage
│ │ │ ├── peer → InputPeer
│ │ │ │ ├── InputPeerEmpty
│ │ │ │ ├── InputPeerSelf
│ │ │ │ ├── InputPeerChat
│ │ │ │ ├── InputPeerUser
│ │ │ │ ├── InputPeerChannel
│ │ │ │ ├── InputPeerUserFromMessage
│ │ │ │ └── InputPeerChannelFromMessage
│ │ │ ├── msg_id → int
│ │ │ └── user_id → long
│ │ └── InputPeerChannelFromMessage
│ │ ├── peer → InputPeer
│ │ │ ├── InputPeerEmpty
│ │ │ ├── InputPeerSelf
│ │ │ ├── InputPeerChat
│ │ │ ├── InputPeerUser
│ │ │ ├── InputPeerChannel
│ │ │ ├── InputPeerUserFromMessage
│ │ │ └── InputPeerChannelFromMessage
│ │ ├── msg_id → int
│ │ └── channel_id → long
│ ├── countries_iso2 → Vector < string > (optional)
│ ├── prize_description → string (optional)
│ ├── random_id → long
│ ├── until_date → int
│ ├── currency → string
│ ├── amount → long
│ └── users → int
├── restore → true (optional)
├── phone_number → string
├── phone_code_hash → string
├── premium_days → int
├── currency → string
└── amount → long

Example

InputInvoicePremiumAuthCode(
    purpose=InputStorePaymentPremiumSubscription(),
)