o
    Zzj
  ã                   @   s0   d Z ddlmZ ddlmZ G dd„ deƒZdS )zGThis module contains an object that represents a Telegram LabeledPrice.é    )ÚTelegramObject)ÚJSONDictc                       s<   e Zd ZdZdZddœdedededB f‡ fdd	„Z‡  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                   s4   t ƒ j|d� || _|| _| j| jf| _|  ¡  d S )Nr   )ÚsuperÚ__init__r   r   Ú	_id_attrsÚ_freeze)Úselfr   r   r   ©Ú	__class__© úY/var/www/kodo/tsheker/venv/lib/python3.10/site-packages/telegram/_payment/labeledprice.pyr
   8   s
   zLabeledPrice.__init__)
Ú__name__Ú
__module__Ú__qualname__Ú__doc__Ú	__slots__ÚstrÚintr   r
   Ú__classcell__r   r   r   r   r      s    ,r   N)r   Útelegram._telegramobjectr   Útelegram._utils.typesr   r   r   r   r   r   Ú<module>   s   