
    di
                     >    d Z ddlmZ ddlmZ  G d de          ZdS )zGThis module contains an object that represents a Telegram LabeledPrice.    )TelegramObject)JSONDictc                   @     e Zd ZdZdZdddedededz  f fdZ xZ	S )	LabeledPricea;  This object represents a portion of the price for goods or services.

    Objects of this class are comparable in terms of equality. Two objects of this class are
    considered equal, if their :attr:`label` and :attr:`amount` are equal.

    Examples:
        :any:`Payment Bot <examples.paymentbot>`

    Args:
        label (:obj:`str`): Portion label.
        amount (:obj:`int`): Price of the product in the smallest units of the currency (integer,
            **not** float/double). For example, for a price of ``US$ 1.45`` pass ``amount = 145``.
            See the ``exp`` parameter in
            `currencies.json <https://core.telegram.org/bots/payments/currencies.json>`_,
            it shows the number of digits past the decimal point for each currency
            (2 for the majority of currencies).

    Attributes:
        label (:obj:`str`): Portion label.
        amount (:obj:`int`): Price of the product in the smallest units of the currency (integer,
            **not** float/double). For example, for a price of ``US$ 1.45`` pass ``amount = 145``.
            See the ``exp`` parameter in
            `currencies.json <https://core.telegram.org/bots/payments/currencies.json>`_,
            it shows the number of digits past the decimal point for each currency
            (2 for the majority of currencies).

    )amountlabelN
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/labeledprice.pyr   zLabeledPrice.__init__8   sM    J///
!*dk2    )
__name__
__module____qualname____doc__	__slots__strintr   r   __classcell__)r   s   @r   r   r      st         8 $IQU   c 3 x$          r   r   N)r   telegram._telegramobjectr   telegram._utils.typesr   r    r   r   <module>r      sf   & N M 3 3 3 3 3 3 * * * * * *& & & & &> & & & & &r   