peyk.platforms.telegram.types.star_amount

Classes

StarAmount(amount[, nanostar_amount])

Describes an amount of Telegram Stars.

class peyk.platforms.telegram.types.star_amount.StarAmount(amount: int, nanostar_amount: int | None = None)[source]

Bases: object

Describes an amount of Telegram Stars.

Variables:
  • amount (int) – Integer amount of Telegram Stars, rounded to 0; can be negative

  • nanostar_amount (int | None) – The number of 1/1000000000 shares of Telegram Stars; from -999999999 to 999999999; can be negative if and only if amount is non-positive

amount: int
nanostar_amount: int | None = None
classmethod from_dict(data: dict | None) StarAmount | None[source]

Provides the from dict operation for the Telegram integration.

Parameters:

data – Value used by this operation.

Returns:

Result produced by the operation.