Ë
    †j„  ã                   ó†   — d Z ddlmZ ddlmZ ddlmZ ddlmZ ddl	m
Z
 ddlmZ ddlmZmZ erdd	lmZ  G d
„ de«      Zy)zKThis module contains an object that represents a Telegram PreCheckoutQuery.é    )ÚTYPE_CHECKING)Ú	OrderInfo)ÚTelegramObject)ÚUser)Úde_json_optional)ÚDEFAULT_NONE)ÚJSONDictÚODVInput)ÚBotc                   óè   ‡ — e Zd ZdZdZ	 	 dddœdedededed	ed
edz  dedz  de	dz  fˆ fd„Z
edde	dddd fˆ fd„«       Z	 deeeeddœdededz  dee   dee   dee   dee   de	dz  defd„Zˆ xZS )ÚPreCheckoutQueryaù  This object contains information about an incoming pre-checkout query.

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

    Note:
        In Python :keyword:`from` is a reserved word. Use :paramref:`from_user` instead.

    Args:
        id (:obj:`str`): Unique query identifier.
        from_user (:class:`telegram.User`): User who sent the query.
        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).
        invoice_payload (:obj:`str`): Bot-specified invoice payload.
        shipping_option_id (:obj:`str`, optional): Identifier of the shipping option chosen by the
            user.
        order_info (:class:`telegram.OrderInfo`, optional): Order info provided by the user.

    Attributes:
        id (:obj:`str`): Unique query identifier.
        from_user (:class:`telegram.User`): User who sent the query.
        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).
        invoice_payload (:obj:`str`): Bot-specified invoice payload.
        shipping_option_id (:obj:`str`): Optional. Identifier of the shipping option chosen by the
            user.
        order_info (:class:`telegram.OrderInfo`): Optional. Order info provided by the user.


    )ÚcurrencyÚ	from_userÚidÚinvoice_payloadÚ
order_infoÚshipping_option_idÚtotal_amountN©Ú
api_kwargsr   r   r   r   r   r   r   r   c                óÌ   •— t         ‰	| �  |¬«       || _        || _        || _        || _        || _        || _        || _        | j                  f| _	        | j                  «        y )Nr   )ÚsuperÚ__init__r   r   r   r   r   r   r   Ú	_id_attrsÚ_freeze)
Úselfr   r   r   r   r   r   r   r   Ú	__class__s
            €úa/var/www/html/datingFans/myenv/lib/python3.12/site-packages/telegram/_payment/precheckoutquery.pyr   zPreCheckoutQuery.__init__X   s_   ø€ ô 	‰Ñ JÐÔ/ØˆŒØ(ˆŒØ%ˆŒØ!-ˆÔØ$3ˆÔØ.@ˆÔØ,6ˆŒàŸ'™'˜ˆŒà�‰�ó    ÚdataÚbotz
Bot | NoneÚreturnc                 óÖ   •— | j                  |«      }t        |j                  dd«      t        |«      |d<   t        |j	                  d«      t
        |«      |d<   t        ‰| �  ||¬«      S )z,See :meth:`telegram.TelegramObject.de_json`.ÚfromNr   r   )r    r!   )Ú_parse_datar   Úpopr   Úgetr   r   Úde_json)Úclsr    r!   r   s      €r   r(   zPreCheckoutQuery.de_jsonq   sa   ø€ ð �‰˜tÓ$ˆä,¨T¯X©X°f¸dÓ-CÄTÈ3ÓOˆˆ[ÑÜ-¨d¯h©h°|Ó.DÄiÐQTÓUˆˆ\Ñä‰w‰ D¨cˆÓ2Ð2r   )Úread_timeoutÚwrite_timeoutÚconnect_timeoutÚpool_timeoutr   ÚokÚerror_messager*   r+   r,   r-   c          
   ƒ   ó€   K  — | j                  «       j                  | j                  |||||||¬«      ƒ d{  –—† S 7 Œ­w)zíShortcut for::

             await bot.answer_pre_checkout_query(update.pre_checkout_query.id, *args, **kwargs)

        For the documentation of the arguments, please see
        :meth:`telegram.Bot.answer_pre_checkout_query`.

        )Úpre_checkout_query_idr.   r/   r*   r+   r,   r-   r   N)Úget_botÚanswer_pre_checkout_queryr   )r   r.   r/   r*   r+   r,   r-   r   s           r   ÚanswerzPreCheckoutQuery.answer{   sL   è ø€ ð& —\‘\“^×=Ñ=Ø"&§'¡'ØØ'Ø%Ø'Ø+Ø%Ø!ð >ó 	
÷ 	
ð 		
ð 	
ús   ‚5>·<¸>)NN)N)Ú__name__Ú
__module__Ú__qualname__Ú__doc__Ú	__slots__Ústrr   Úintr   r	   r   Úclassmethodr(   r   Úboolr
   Úfloatr4   Ú__classcell__)r   s   @r   r   r   "   s2  ø„ ñ)ðV€Ið" *.Ø'+ðð '+òàðð ðð ð	ð
 ðð ðð   $™Jðð  Ñ$ðð ˜t‘Oõð2 ñ3˜8ð 3¨,ð 3ÐBTô 3ó ð3ð %)ð
ð
 )5Ø)5Ø+7Ø(4Ø&*ò
àð
ð ˜T‘zð
ð
 ˜u‘oð
ð   ‘ð
ð " %™ð
ð ˜u‘oð
ð ˜t‘Oð
ð 
÷
r   r   N)r8   Útypingr   Útelegram._payment.orderinfor   Útelegram._telegramobjectr   Útelegram._userr   Útelegram._utils.argumentparsingr   Útelegram._utils.defaultvaluer   Útelegram._utils.typesr	   r
   Útelegramr   r   © r   r   ú<module>rI      s4   ðñ& Rå  å 1Ý 3Ý Ý <Ý 5ß 4áÝôu
�~õ u
r   