Layer 224
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 StarsAmountObj constructor
obj := &tg.StarsAmountObj{
    Amount: int64(1234567890),
    Nanos: 42,
}