
    ՟f
                     B    d Z ddlmZ ddlmZ ddlmZ  G d de      Zy)zGThis module contains an object that represents a Telegram LabeledPrice.    )Optional)TelegramObject)JSONDictc                   @     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`` 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| _        | j                          y )Nr
   )super__init__r	   r   	_id_attrs_freeze)selfr	   r   r   	__class__s       Y/var/www/cvtools/html/venv/lib/python3.12/site-packages/telegram/_payment/labeledprice.pyr   zLabeledPrice.__init__:   s>    J/
!**dkk2    )__name__
__module____qualname____doc__	__slots__strintr   r   r   __classcell__)r   s   @r   r   r      s6    8 $ITX c 3 x?Q  r   r   N)r   typingr   telegram._telegramobjectr   telegram._utils.typesr   r    r   r   <module>r!      s    & N  3 *&> &r   