StarAmount

class telegram.StarAmount(amount, nanostar_amount=None, *, api_kwargs=None)[source]

Bases: telegram.TelegramObject

Describes an amount of Telegram Stars.

Objects of this class are comparable in terms of equality. Two objects of this class are considered equal, if their amount and nanostar_amount are equal.

Parameters:
amount[source]

Integer amount of Telegram Stars, rounded to 0; can be negative.

Type:

int

nanostar_amount[source]

Optional. The number of 1e-09 shares of Telegram Stars; from -999999999 to 999999999; can be negative if and only if amount is non-positive.

Type:

int