payments.AssignAppStoreTransaction

class pyrogram.raw.functions.payments.AssignAppStoreTransaction

Informs server about a purchase made through the App Store: for official applications only.

Details:
  • Layer: 223

  • ID: 80ED747D

Parameters:
Returns:

Updates

TL Schema

payments.assignAppStoreTransaction#80ed747d
receipt:bytes
purpose:InputStorePaymentPurpose

= Updates

Parameter Tree

AssignAppStoreTransaction
├── receiptbytes
└── purposeInputStorePaymentPurpose
│ ├── restoretrue (optional)
│ └── upgradetrue (optional)
│ ├── user_idInputUser
│ │ ├── InputUserEmpty
│ │ ├── InputUserSelf
│ │ ├── InputUser
│ │ └── InputUserFromMessage
│ ├── currencystring
│ └── amountlong
│ ├── usersVector < InputUser >
│ │ ├── InputUserEmpty
│ │ ├── InputUserSelf
│ │ ├── InputUser
│ │ │ ├── user_idlong
│ │ │ └── access_hashlong
│ │ └── InputUserFromMessage
│ │ ├── peerInputPeer
│ │ │ ├── InputPeerEmpty
│ │ │ ├── InputPeerSelf
│ │ │ ├── InputPeerChat
│ │ │ ├── InputPeerUser
│ │ │ ├── InputPeerChannel
│ │ │ ├── InputPeerUserFromMessage
│ │ │ └── InputPeerChannelFromMessage
│ │ ├── msg_idint
│ │ └── user_idlong
│ ├── boost_peerInputPeer (optional)
│ │ ├── InputPeerEmpty
│ │ ├── InputPeerSelf
│ │ ├── InputPeerChat
│ │ ├── InputPeerUser
│ │ ├── InputPeerChannel
│ │ ├── InputPeerUserFromMessage
│ │ └── InputPeerChannelFromMessage
│ ├── currencystring
│ ├── amountlong
│ └── messageTextWithEntities (optional)
│ └── TextWithEntities
│ ├── textstring
│ └── entitiesVector < MessageEntity >
│ ├── MessageEntityUnknown
│ ├── MessageEntityMention
│ ├── MessageEntityHashtag
│ ├── MessageEntityUrl
│ ├── MessageEntityEmail
│ ├── MessageEntityBold
│ ├── MessageEntityItalic
│ ├── MessageEntityCode
│ ├── MessageEntityPre
│ ├── MessageEntityTextUrl
│ ├── MessageEntityPhone
│ ├── MessageEntityCashtag
│ ├── MessageEntityStrike
│ ├── MessageEntityBankCard
│ ├── MessageEntitySpoiler
│ ├── only_new_subscriberstrue (optional)
│ ├── winners_are_visibletrue (optional)
│ ├── boost_peerInputPeer
│ │ ├── InputPeerEmpty
│ │ ├── InputPeerSelf
│ │ ├── InputPeerChat
│ │ ├── InputPeerUser
│ │ ├── InputPeerChannel
│ │ ├── InputPeerUserFromMessage
│ │ └── InputPeerChannelFromMessage
│ ├── additional_peersVector < InputPeer > (optional)
│ │ ├── InputPeerEmpty
│ │ ├── InputPeerSelf
│ │ ├── InputPeerChat
│ │ ├── InputPeerUser
│ │ │ ├── user_idlong
│ │ │ └── access_hashlong
│ │ ├── InputPeerChannel
│ │ │ ├── channel_idlong
│ │ │ └── access_hashlong
│ │ ├── InputPeerUserFromMessage
│ │ │ ├── peerInputPeer
│ │ │ │ ├── InputPeerEmpty
│ │ │ │ ├── InputPeerSelf
│ │ │ │ ├── InputPeerChat
│ │ │ │ ├── InputPeerUser
│ │ │ │ ├── InputPeerChannel
│ │ │ │ ├── InputPeerUserFromMessage
│ │ │ │ └── InputPeerChannelFromMessage
│ │ │ ├── msg_idint
│ │ │ └── user_idlong
│ │ └── InputPeerChannelFromMessage
│ │ ├── peerInputPeer
│ │ │ ├── InputPeerEmpty
│ │ │ ├── InputPeerSelf
│ │ │ ├── InputPeerChat
│ │ │ ├── InputPeerUser
│ │ │ ├── InputPeerChannel
│ │ │ ├── InputPeerUserFromMessage
│ │ │ └── InputPeerChannelFromMessage
│ │ ├── msg_idint
│ │ └── channel_idlong
│ ├── countries_iso2Vector < string > (optional)
│ ├── prize_descriptionstring (optional)
│ ├── random_idlong
│ ├── until_dateint
│ ├── currencystring
│ └── amountlong
│ ├── starslong
│ ├── currencystring
│ ├── amountlong
│ └── spend_purpose_peerInputPeer (optional)
│ ├── InputPeerEmpty
│ ├── InputPeerSelf
│ ├── InputPeerChat
│ ├── InputPeerUser
│ ├── InputPeerChannel
│ ├── user_idInputUser
│ │ ├── InputUserEmpty
│ │ ├── InputUserSelf
│ │ ├── InputUser
│ │ └── InputUserFromMessage
│ ├── starslong
│ ├── currencystring
│ └── amountlong
│ ├── only_new_subscriberstrue (optional)
│ ├── winners_are_visibletrue (optional)
│ ├── starslong
│ ├── boost_peerInputPeer
│ │ ├── InputPeerEmpty
│ │ ├── InputPeerSelf
│ │ ├── InputPeerChat
│ │ ├── InputPeerUser
│ │ ├── InputPeerChannel
│ │ ├── InputPeerUserFromMessage
│ │ └── InputPeerChannelFromMessage
│ ├── additional_peersVector < InputPeer > (optional)
│ │ ├── InputPeerEmpty
│ │ ├── InputPeerSelf
│ │ ├── InputPeerChat
│ │ ├── InputPeerUser
│ │ │ ├── user_idlong
│ │ │ └── access_hashlong
│ │ ├── InputPeerChannel
│ │ │ ├── channel_idlong
│ │ │ └── access_hashlong
│ │ ├── InputPeerUserFromMessage
│ │ │ ├── peerInputPeer
│ │ │ │ ├── InputPeerEmpty
│ │ │ │ ├── InputPeerSelf
│ │ │ │ ├── InputPeerChat
│ │ │ │ ├── InputPeerUser
│ │ │ │ ├── InputPeerChannel
│ │ │ │ ├── InputPeerUserFromMessage
│ │ │ │ └── InputPeerChannelFromMessage
│ │ │ ├── msg_idint
│ │ │ └── user_idlong
│ │ └── InputPeerChannelFromMessage
│ │ ├── peerInputPeer
│ │ │ ├── InputPeerEmpty
│ │ │ ├── InputPeerSelf
│ │ │ ├── InputPeerChat
│ │ │ ├── InputPeerUser
│ │ │ ├── InputPeerChannel
│ │ │ ├── InputPeerUserFromMessage
│ │ │ └── InputPeerChannelFromMessage
│ │ ├── msg_idint
│ │ └── channel_idlong
│ ├── countries_iso2Vector < string > (optional)
│ ├── prize_descriptionstring (optional)
│ ├── random_idlong
│ ├── until_dateint
│ ├── currencystring
│ ├── amountlong
│ └── usersint
├── restoretrue (optional)
├── phone_numberstring
├── phone_code_hashstring
├── currencystring
└── amountlong

Example

await app.invoke(
    AssignAppStoreTransaction(
        receipt=b"data",
        purpose=InputStorePaymentPremiumSubscription(
            restore=None,
            upgrade=None
        ),
    )
)