§
    ¬eîiý  ã                   óV   — d Z ddlmZ ddlmZ ddlmZ ddlmZ  G d„ de¦  «        Z	dS )	zBThis module contains an object that represents a Telegram Invoice.é    )ÚFinal)Ú	constants)ÚTelegramObject)ÚJSONDictc                   óœ  ‡ — e Zd ZU dZdZddœdedededed	ed
edz  fˆ fd„Ze	j
        j        Zee         ed<   	 e	j
        j        Zee         ed<   	 e	j
        j        Zee         ed<   	 e	j
        j        Zee         ed<   	 e	j
        j        Zee         ed<   	 e	j
        j        Zee         ed<   	 e	j
        j        Zee         ed<   ˆ xZS )ÚInvoicea�  This object contains basic information about an invoice.

    Objects of this class are comparable in terms of equality. Two objects of this class are
    considered equal, if their :attr:`title`, :attr:`description`, :paramref:`start_parameter`,
    :attr:`currency` and :attr:`total_amount` are equal.

    Args:
        title (:obj:`str`): Product name.
        description (:obj:`str`): Product description.
        start_parameter (:obj:`str`): Unique bot deep-linking parameter that can be used to
            generate this invoice.
        currency (:obj:`str`): Three-letter ISO 4217 currency code, or ``XTR`` for payments in
            |tg_stars|.
        total_amount (:obj:`int`): Total price 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:
        title (:obj:`str`): Product name.
        description (:obj:`str`): Product description.
        start_parameter (:obj:`str`): Unique bot deep-linking parameter that can be used to
            generate this invoice.
        currency (:obj:`str`): Three-letter ISO 4217 currency code, or ``XTR`` for payments in
            |tg_stars|.
        total_amount (:obj:`int`): Total price 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).

    )ÚcurrencyÚdescriptionÚstart_parameterÚtitleÚtotal_amountN©Ú
api_kwargsr   r
   r   r	   r   r   c                ó  •— t          ¦   «                              |¬¦  «         || _        || _        || _        || _        || _        | j        | j        | j        | j        | j        f| _        |                      ¦   «          d S )Nr   )	ÚsuperÚ__init__r   r
   r   r	   r   Ú	_id_attrsÚ_freeze)Úselfr   r
   r   r	   r   r   Ú	__class__s          €ú]/home/div/.hermes/hermes-agent/venv/lib/python3.11/site-packages/telegram/_payment/invoice.pyr   zInvoice.__init__I   s€   ø€ õ 	‰Œ×Ò JÐÑ/Ô/Ð/ØˆŒ
Ø +ˆÔØ$3ˆÔØ%ˆŒØ!-ˆÔð ŒJØÔØÔ ØŒMØÔð
ˆŒð 	�Š‰Œˆˆˆó    ÚMIN_TITLE_LENGTHÚMAX_TITLE_LENGTHÚMIN_DESCRIPTION_LENGTHÚMAX_DESCRIPTION_LENGTHÚMIN_PAYLOAD_LENGTHÚMAX_PAYLOAD_LENGTHÚMAX_TIP_AMOUNTS)Ú__name__Ú
__module__Ú__qualname__Ú__doc__Ú	__slots__ÚstrÚintr   r   r   ÚInvoiceLimitr   r   Ú__annotations__r   r   r   r   r   r   Ú__classcell__)r   s   @r   r   r      s†  ø€ € € € € € ð"ð "ðH€Ið  '+ðð ð àðð ðð ð	ð
 ðð ðð ˜t‘Oðð ð ð ð ð ð6 $-Ô#9Ô#JÐ�e˜C”jÐJÐJÑJðð $-Ô#9Ô#JÐ�e˜C”jÐJÐJÑJðð *3Ô)?Ô)VÐ˜E #œJÐVÐVÑVðð *3Ô)?Ô)VÐ˜E #œJÐVÐVÑVðð &/Ô%;Ô%NÐ˜˜cœ
ÐNÐNÑNðð &/Ô%;Ô%NÐ˜˜cœ
ÐNÐNÑNðð #,Ô"8Ô"H€O�U˜3”ZÐHÐHÑHðð ð ð r   r   N)
r#   Útypingr   Útelegramr   Útelegram._telegramobjectr   Útelegram._utils.typesr   r   © r   r   ú<module>r/      s”   ðð& IÐ Hà Ð Ð Ð Ð Ð à Ð Ð Ð Ð Ð Ø 3Ð 3Ð 3Ð 3Ð 3Ð 3Ø *Ð *Ð *Ð *Ð *Ð *ðjð jð jð jð jˆnñ jô jð jð jð jr   