StarAmount¶
- class telegram.StarAmount(amount, nanostar_amount=None, *, api_kwargs=None)[source]¶
Bases:
telegram.TelegramObjectDescribes 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
amountandnanostar_amountare equal.Available In
- Parameters:
amount (
int) – Integer amount of Telegram Stars, rounded to0; can be negative.nanostar_amount (
int, optional) – The number of1e-09shares of Telegram Stars; from-999999999to999999999; can be negative if and only ifamountis non-positive.