Data about the describes the source of a transaction, or its recipient for outgoing transactions
Optional
affiliateInformation about the affiliate that received a commission via this transaction. Can be available only for “invoice_payment” and “paid_media_payment” transactions.
Optional
chatInformation about the chat.
Optional
commissionThe number of Telegram Stars received by the bot for each 1000 Telegram Stars received by the affiliate program sponsor from referred users.
Optional
giftThe gift sent to the user by the bot; for “gift_purchase” transactions only.
Optional
paidInformation about the paid media bought by the user. Can be available only for “invoice_payment” transactions.
Optional
paidBot-specified paid media payload. Can be available only for “invoice_payment” transactions.
Optional
payloadBot-specified invoice payload. Can be available only for “invoice_payment” transactions.
Optional
premiumNumber of months the gifted Telegram Premium subscription will be active for; for “premium_purchase” transactions only
Optional
requestThe number of successful requests that exceeded regular limits and were therefore billed.
Optional
sponsorInformation about the bot that sponsored the affiliate program.
Optional
subscriptionThe duration of the paid subscription. Can be available only for “invoice_payment” transactions.
Optional
transactionType of the transaction, currently one of “invoice_payment” for payments via invoices, “paid_media_payment” for payments for paid media, “gift_purchase” for gifts sent by the bot, “premium_purchase” for Telegram Premium subscriptions gifted by the bot, “business_account_transfer” for direct transfers from managed business accounts
Type of the transaction partner
Optional
userInformation about the user
Optional
withdrawalState of the transaction if the transaction is outgoing
The client that instantiated this
Protected
_cloneProtected
_updateFlatten an object. Any properties that are collections will get converted to an array of keys.
Optional
propsRecursive: booleanOptional. If true, calls toJSON method on nested objects.
Optional. Specific properties to include/exclude, or rename.
Flattened object.
The client that instantiated this