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
andnanostar_amount
are equal.Returned In
- Parameters:
amount (
int
) – Integer amount of Telegram Stars, rounded to0
; can be negative.nanostar_amount (
int
, optional) – The number of1e-09
shares of Telegram Stars; from-999999999
to999999999
; can be negative if and only ifamount
is non-positive.