Data about the describes the source of a transaction, or its recipient for outgoing transactions
OptionalaffiliateInformation about the affiliate that received a commission via this transaction. Can be available only for “invoice_payment” and “paid_media_payment” transactions.
OptionalchatInformation about the chat.
OptionalcommissionThe number of Telegram Stars received by the bot for each 1000 Telegram Stars received by the affiliate program sponsor from referred users.
OptionalgiftThe gift sent to the user by the bot; for “gift_purchase” transactions only.
OptionalpaidInformation about the paid media bought by the user. Can be available only for “invoice_payment” transactions.
OptionalpaidBot-specified paid media payload. Can be available only for “invoice_payment” transactions.
OptionalpayloadBot-specified invoice payload. Can be available only for “invoice_payment” transactions.
OptionalpremiumNumber of months the gifted Telegram Premium subscription will be active for; for “premium_purchase” transactions only
OptionalrequestThe number of successful requests that exceeded regular limits and were therefore billed.
OptionalsponsorInformation about the bot that sponsored the affiliate program.
OptionalsubscriptionThe duration of the paid subscription. Can be available only for “invoice_payment” transactions.
OptionaltransactionType 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
OptionaluserInformation about the user
OptionalwithdrawalState 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.
OptionalpropsRecursive: booleanOptional. If true, calls toJSON method on nested objects.
Optional. Specific properties to include/exclude, or rename.
Flattened object.
The client that instantiated this