Data about the contains basic information about a successful payment
Three-letter ISO 4217 currency code, or “XTR” for payments in Telegram Stars
True, if the payment is the first payment for a subscription
True, if the payment is a recurring payment for a subscription
Optional
orderOrder information provided by the user
Bot specified invoice payload
Provider payment identifier
Optional
shippingIdentifier of the shipping option chosen by the user
Optional
subscriptionExpiration date of the subscription, in Unix time; for recurring payments only
Telegram payment identifier
Total price in the smallest units of the currency (integer, not float/double). For example, for a price of US$ 1.45 pass amount = 145. See the exp parameter in currencies.json, it shows the number of digits past the decimal point for each currency (2 for the majority of currencies).
The client that instantiated this
Date the subscription
Return the timestamp subscription, in milliseconds
Protected
_cloneProtected
_patchProtected
_updateAllows the bot to cancel or re-enable extension of a subscription paid in Telegram Stars.
out parameters.
Pass True to cancel extension of the user subscription; the subscription must be active up to the end of the current subscription period. Pass False to allow the user to re-enable a subscription that was previously canceled by the bot.
Identifier of the user whose subscription will be edited.
Returns True on success.
Flatten 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.
Rest
...props: Record<string, string | boolean>[]Optional. Specific properties to include/exclude, or rename.
Flattened object.
The client that instantiated this