Link Search Menu Expand Document

Constructor: starsAmount

Back to constructors index

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

Attributes:

NameTypeRequiredDescription
amountlongYesThe integer amount of Telegram Stars.
nanosintYesThe decimal amount of Telegram Stars, expressed as nanostars (i.e. 1 nanostar is equal to 1/1'000'000'000th of a Telegram Star).
This field may also be negative (the allowed range is -999999999 to 999999999).

Type: StarsAmount

Example:

$starsAmount = ['_' => 'starsAmount', 'amount' => long, 'nanos' => int];