Data about the describes a Telegram Star transaction
Integer amount Telegram Stars transferred by the transaction
Date the transaction was created in Unix time
Unique identifier of the transaction. Coincides with the identifer of the original transaction for refund transactions. Coincides with SuccessfulPayment.telegram_payment_charge_id for successful incoming payments from users.
OptionalnanostarThe number of 1/1000000000 shares of Telegram Stars transferred by the transaction; from 0 to 999999999
OptionalreceiverReceiver of an outgoing transaction (e.g., a user for a purchase refund, Fragment for a withdrawal). Only for outgoing transactions
OptionalsourceSource of an incoming transaction (e.g., a user purchasing goods or services, Fragment refunding a failed withdrawal). Only for incoming transactions
The client that instantiated this
Date the transaction was created
Return the timestamp transaction was created
Protected_Protected_ProtectedPatches the current instance with new data
The data to patch the instance with
The patched data
Protected_ProtectedUpdates the current instance with new data and returns a clone of the updated instance
The data to update the instance with
A clone of the updated instance
Refunds a successful payment in Telegram Stars.
Identifier of the user whose payment will be refunded
Returns True on success.
Flatten 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.
Returns the id instance Chat, User, ChatMember and other
The client that instantiated this