Layer 220
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 -999999999 to 999999999).

Returns

StarsAmount

Gogram Example

// Creating StarsAmount constructor
obj := &tg.StarsAmount{
    Amount: int64(0),
    Nanos: 0,
}