starsAmount
Describes a real (i.e. possibly decimal) amount of Telegram Stars.
type tg.StarsAmount struct { /* ... */ }
Implements StarsAmount.
Fields
| Name | Type | Required | Description |
|---|---|---|---|
Amount | int64 | yes | The integer amount of Telegram Stars. |
Nanos | int | yes | 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 from -999_999_999 to 999_999_999). |
References
- Official documentation
- Generated Go reference
- TL definition:
starsAmount#bbb6b4a3