StarsTransaction¶
- class pyrogram.types.StarsTransaction¶
Represents a Telegram Stars transaction.
- Parameters:
id (
str) – Transaction ID.amount (
StarsAmount) – Amount of Stars in this transaction.date (
datetime) – Date of the transaction.peer (
StarsTransactionPeer) – Source of incoming transaction, or recipient for outgoing.title (
str, optional) – Title of the transaction (for bot/channel subscriptions).description (
str, optional) – Description of the transaction.is_refund (
bool, optional) – Whether this is a refund transaction.is_pending (
bool, optional) – Whether this transaction is pending.is_failed (
bool, optional) – Whether this transaction failed.is_gift (
bool, optional) – Whether this was a gift from the peer.is_reaction (
bool, optional) – Whether this was a paid reaction.is_subscription (
bool, optional) – Whether this is a subscription payment.transaction_date (
datetime, optional) – Date when the transaction was completed.transaction_url (
str, optional) – URL for more details about the transaction.