
    i
                     J    d Z ddlm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.    )Optional)TelegramObject)JSONDictc                   F     e Zd ZdZdZdddededee         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 ``amount`` is ``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       d/var/www/html/crypto-bot/backend/venv/lib/python3.11/site-packages/telegram/_payment/labeledprice.pyr   zLabeledPrice.__init__:   sM    J///
!*dk2    )__name__
__module____qualname____doc__	__slots__strintr   r   r   __classcell__)r   s   @r   r   r      su         8 $ITX   c 3 x?Q          r   r   N)r   typingr   telegram._telegramobjectr   telegram._utils.typesr   r    r   r   <module>r!      sx   & N M       3 3 3 3 3 3 * * * * * *& & & & &> & & & & &r   