Layer 224
StarsAmountObj
Describes a real (i. e. possibly decimal) amount of Telegram Stars.
constructor
starsAmount#bbb6b4a3 amount:long nanos:int = StarsAmount;
Parameters
| Name | Type | Description |
|---|---|---|
| Amount | long | The integer amount of Telegram Stars. |
| Nanos | int | The decimal amount of Telegram Stars, expressed as nanostars (i. e. 1 nanostar is equal to 1/1_000_000_000 th (one billionth) of a Telegram Star). This field may also be negative (the allowed range is from -999_999_999 to 999_999_999 ). |
Returns
StarsAmountGogram Example
// Creating StarsAmountObj constructor obj := &tg.StarsAmountObj{ Amount: int64(1234567890), Nanos: 42, }