
    i{                         d Z ddlmZmZ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 dd	lmZ  G d
 de          ZdS )zHThis module contains an object that represents a Telegram ShippingQuery.    )TYPE_CHECKINGOptionalSequence)ShippingAddress)TelegramObject)User)DEFAULT_NONE)JSONDictODVInput)Bot)ShippingOptionc                   .    e Zd ZdZdZdddedededed	ee	         f
 fd
Z
edee	         ddded          f fd            Z	 	 deeeedddedeed                  dee         dee         dee         dee         dee         d	ee	         defdZ xZS )ShippingQuerya  This object contains information about an incoming shipping 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.
        invoice_payload (:obj:`str`): Bot specified invoice payload.
        shipping_address (:class:`telegram.ShippingAddress`): User specified shipping address.

    Attributes:
        id (:obj:`str`): Unique query identifier.
        from_user (:class:`telegram.User`): User who sent the query.
        invoice_payload (:obj:`str`): Bot specified invoice payload.
        shipping_address (:class:`telegram.ShippingAddress`): User specified shipping address.


    )	from_useridinvoice_payloadshipping_addressN
api_kwargsr   r   r   r   r   c                    t                                          |           || _        || _        || _        || _        | j        f| _        |                                  d S )Nr   )super__init__r   r   r   r   	_id_attrs_freeze)selfr   r   r   r   r   	__class__s         e/var/www/html/crypto-bot/backend/venv/lib/python3.11/site-packages/telegram/_payment/shippingquery.pyr   zShippingQuery.__init__<   sZ     	J///($31A'    databotr   returnc                 *   |                      |          }|sdS t          j        |                    dd          |          |d<   t	          j        |                    d          |          |d<   t                                          ||          S )z,See :meth:`telegram.TelegramObject.de_json`.Nfromr   r   )r   r    )_parse_datar   de_jsonpopr   getr   )clsr   r    r   s      r   r%   zShippingQuery.de_jsonO   s     t$$ 	4 L&$)?)?EE[#2#:488DV;W;WY\#]#] wwDc222r   )read_timeoutwrite_timeoutconnect_timeoutpool_timeoutr   okshipping_optionsr   error_messager)   r*   r+   r,   c                |   K   |                                                      | j        ||||||||	  	         d{V S )zShortcut for::

             await bot.answer_shipping_query(update.shipping_query.id, *args, **kwargs)

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

        )	shipping_query_idr-   r.   r/   r)   r*   r+   r,   r   N)get_botanswer_shipping_queryr   )	r   r-   r.   r/   r)   r*   r+   r,   r   s	            r   answerzShippingQuery.answer\   sh      ( \\^^99"g-'%'+%! : 

 

 

 

 

 

 

 

 
	
r   )NN)__name__
__module____qualname____doc__	__slots__strr   r   r   r
   r   classmethodr%   r	   boolr   r   floatr4   __classcell__)r   s   @r   r   r   "   s        . KI *.    	
 * X&     & 
38H- 
3E 
3h>W 
3 
3 
3 
3 
3 [
3 BF'+	
 )5)5+7(4)-
 
 

 #8,<#=>
  }	
 uo
  
 "%
 uo
 X&
 

 
 
 
 
 
 
 
r   r   N)r8   typingr   r   r   !telegram._payment.shippingaddressr   telegram._telegramobjectr   telegram._userr   telegram._utils.defaultvaluer	   telegram._utils.typesr
   r   telegramr    telegram._payment.shippingoptionr   r    r   r   <module>rH      s   & O N 4 4 4 4 4 4 4 4 4 4 = = = = = = 3 3 3 3 3 3       5 5 5 5 5 5 4 4 4 4 4 4 4 4 @??????X
 X
 X
 X
 X
N X
 X
 X
 X
 X
r   