Skip to content
Back to top
View this page

# StarAmount

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

  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.

  Available In

  `telegram.SuggestedPostPaid.star_amount`

  Returned In

  - `telegram.Bot.get_business_account_star_balance()`

  - `telegram.Bot.get_my_star_balance()`

  Parameters:

    - amount (`int`) – Integer amount of Telegram Stars, rounded to `0`; can be negative.

    - nanostar_amount (`int`, 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.

  amount

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

    Type:

      `int`

  nanostar_amount

    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`