MessageActionGiftTon

class pyrogram.raw.types.MessageActionGiftTon

You were gifted some toncoins.

Constructor of MessageAction.

Details:
  • Layer: 223

  • ID: A8A3C699

Parameters:
  • currency (str) – Name of a localized FIAT currency.

  • amount (int 64-bit) – FIAT currency equivalent (in the currency specified in currency) of the amount specified in crypto_amount.

  • crypto_currency (str) – Name of the cryptocurrency.

  • crypto_amount (int 64-bit) – Amount in the smallest unit of the cryptocurrency (for TONs, one billionth of a ton, AKA a nanoton).

  • transaction_id (str, optional) – Transaction ID.

TL Schema

messageActionGiftTon#a8a3c699
flags:#
currency:string
amount:long
crypto_currency:string
crypto_amount:long
transaction_id:flags.0?string

= MessageAction

Parameter Tree

MessageActionGiftTon
├── currencystring
├── amountlong
├── crypto_currencystring
├── crypto_amountlong
└── transaction_idstring (optional)

Example

MessageActionGiftTon(
    currency="text",
    amount=0,
    crypto_currency="text",
    crypto_amount=0,
)