StarsAmount

class pyrogram.raw.types.StarsAmount

Describes a real (i.e. possibly decimal) amount of Telegram Stars.

Constructor of StarsAmount.

Details:
  • Layer: 223

  • ID: BBB6B4A3

Parameters:
  • amount (int 64-bit) – The integer amount of Telegram Stars.

  • nanos (int 32-bit) – The decimal amount of Telegram Stars, expressed as nanostars (i.e. 1 nanostar is equal to 1/1’000’000’000th (one billionth) of a Telegram Star). This field may also be negative (the allowed range is -999999999 to 999999999).

TL Schema

starsAmount#bbb6b4a3
amount:long
nanos:int

= StarsAmount

Parameter Tree

StarsAmount
├── amountlong
└── nanosint

Example

StarsAmount(
    amount=0,
    nanos=0,
)