StarsTransaction#

class pyrogram.raw.types.StarsTransaction#

Represents a Telegram Stars transaction ».

Constructor of StarsTransaction.

Details:
  • Layer: 187

  • ID: EE7522D5

Parameters:
  • id (str) – Transaction ID.

  • stars (int 64-bit) – Amount of Stars (negative for outgoing transactions).

  • date (int 32-bit) – Date of the transaction (unixtime).

  • peer (StarsTransactionPeer) – Source of the incoming transaction, or its recipient for outgoing transactions.

  • refund (bool, optional) – Whether this transaction is a refund.

  • pending (bool, optional) – The transaction is currently pending.

  • failed (bool, optional) – This transaction has failed.

  • gift (bool, optional) – This transaction was a gift from the user in peer.peer.

  • reaction (bool, optional) – N/A

  • title (str, optional) – For transactions with bots, title of the bought product.

  • description (str, optional) – For transactions with bots, description of the bought product.

  • photo (WebDocument, optional) – For transactions with bots, photo of the bought product.

  • transaction_date (int 32-bit, optional) – If neither pending nor failed are set, the transaction was completed successfully, and this field will contain the point in time (Unix timestamp) when the withdrawal was completed successfully.

  • transaction_url (str, optional) – If neither pending nor failed are set, the transaction was completed successfully, and this field will contain a URL where the withdrawal transaction can be viewed.

  • bot_payload (bytes, optional) – Bot specified invoice payload (i.e. the payload passed to inputMediaInvoice when creating the invoice).

  • msg_id (int 32-bit, optional) – For paid media transactions », message ID of the paid media posted to peer.peer (can point to a deleted message; either way, extended_media will always contain the bought media).

  • extended_media (List of MessageMedia, optional) – The purchased paid media ».

  • subscription_period (int 32-bit, optional) – N/A

  • giveaway_post_id (int 32-bit, optional) – N/A