
    diP
                     >    d Z ddlmZ ddlmZ  G d de          ZdS )zEThis module contains an object that represents a Telegram StarAmount.    )TelegramObject)JSONDictc            	       J     e Zd ZdZdZ	 d	dddededz  dedz  f fdZ xZS )

StarAmounta  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 :attr:`amount` and :attr:`nanostar_amount` are equal.

    Args:
        amount (:obj:`int`): Integer amount of Telegram Stars, rounded to ``0``; can be negative.
        nanostar_amount (:obj:`int`, optional): The number of
            :tg-const:`telegram.constants.Nanostar.VALUE` shares of Telegram
            Stars; from :tg-const:`telegram.constants.NanostarLimit.MIN_AMOUNT`
            to :tg-const:`telegram.constants.NanostarLimit.MAX_AMOUNT`; can be
            negative if and only if :attr:`amount` is non-positive.

    Attributes:
        amount (:obj:`int`): Integer amount of Telegram Stars, rounded to ``0``; can be negative.
        nanostar_amount (:obj:`int`): Optional. The number of
            :tg-const:`telegram.constants.Nanostar.VALUE` shares of Telegram
            Stars; from :tg-const:`telegram.constants.NanostarLimit.MIN_AMOUNT`
            to :tg-const:`telegram.constants.NanostarLimit.MAX_AMOUNT`; can be
            negative if and only if :attr:`amount` is non-positive.

    )amountnanostar_amountN
api_kwargsr   r   r
   c                    t                                          |           || _        || _        | j        | j        f| _        |                                  d S )Nr	   )super__init__r   r   	_id_attrs_freeze)selfr   r   r
   	__class__s       _/root/projects/qq-shell/venv/lib/python3.11/site-packages/telegram/_payment/stars/staramount.pyr   zStarAmount.__init__3   sQ     	J///!+:+t';<    )N)	__name__
__module____qualname____doc__	__slots__intr   r   __classcell__)r   s   @r   r   r      s         . .I
 '+
 '+   t
 tO         r   r   N)r   telegram._telegramobjectr   telegram._utils.typesr   r    r   r   <module>r      sf   & L K 3 3 3 3 3 3 * * * * * *' ' ' ' ' ' ' ' ' 'r   