+
    rpÐj$  ã                   ó�   € R t ^ RIt^ RIHt ^ RIHt ^ RIHtH	t	 ^ RI
Ht ^ RIHtHt ]'       d   ^ RIHtHtHt  ! R R	]4      tR# )
zHThis module contains an object that represents a Encrypted PassportFile.N)ÚTYPE_CHECKING)ÚTelegramObject)Úextract_tzinfo_from_defaultsÚfrom_timestamp)ÚDEFAULT_NONE)ÚJSONDictÚODVInput)ÚBotÚFileÚFileCredentialsc            
       óà   a a€ ] tR t^!t oRtRtRRR/V3R lV 3R llllt]RV3R lV 3R lll4       t]V3R lV 3R	 ll4       t	]V3R
 lR l4       t
R]R]R]R]RR/V3R lR lltRtVtV ;t# )ÚPassportFilea¼  
This object represents a file uploaded to Telegram Passport. Currently all Telegram Passport
files are in JPEG format when decrypted and don't exceed 10MB.

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

Args:
    file_id (:obj:`str`): Identifier for this file, which can be used to download
        or reuse the file.
    file_unique_id (:obj:`str`): Unique identifier for this file, which
        is supposed to be the same over time and for different bots.
        Can't be used to download or reuse the file.
    file_size (:obj:`int`): File size in bytes.
    file_date (:class:`datetime.datetime`): Time when the file was uploaded.

        .. versionchanged:: 22.0
            Accepts only :class:`datetime.datetime` instead of :obj:`int`.
            |datetime_localization|

Attributes:
    file_id (:obj:`str`): Identifier for this file, which can be used to download
        or reuse the file.
    file_unique_id (:obj:`str`): Unique identifier for this file, which
        is supposed to be the same over time and for different bots.
        Can't be used to download or reuse the file.
    file_size (:obj:`int`): File size in bytes.
    file_date (:class:`datetime.datetime`): Time when the file was uploaded.

        .. versionchanged:: 22.0
            Returns :class:`datetime.datetime` instead of :obj:`int`.
            |datetime_localization|
NÚ
api_kwargsc                ó^   <€ V ^8„  d   QhRS[ RS[ RS[P                  RS[RRRS[R,          /# )	é   Úfile_idÚfile_unique_idÚ	file_dateÚ	file_sizeÚcredentialszFileCredentials | Noner   N)ÚstrÚdtmÚdatetimeÚintr   )ÚformatÚ__classdict__s   "€ÚQ/opt/hermes/.venv/lib/python3.14/site-packages/telegram/_passport/passportfile.pyÚ__annotate__ÚPassportFile.__annotate__L   sO   ø€ ÷ ñ áðñ ðñ —<‘<ð	ñ
 ðð .ðñ ˜t•Oñó    c               ó¨   <€ \         SV `  VR 7       Wn        W n        W@n        W0n        WPn        V P                  3V n        V P                  4        R# ))r   N)	ÚsuperÚ__init__r   r   r   r   Ú_credentialsÚ	_id_attrsÚ_freeze)Úselfr   r   r   r   r   r   Ú	__class__s   &&&&&&$€r   r"   ÚPassportFile.__init__L   sN   ø€ ô 	‰Ñ JÐÔ/ð $ŒØ#1ÔØ'ŒØ'0Œð 5@Ôà×-Ñ-Ð/ˆŒà�‰Žr   c                ó(   <€ V ^8„  d   QhRS[ RRRR/# )r   ÚdataÚbotú
Bot | NoneÚreturnr   ©r   )r   r   s   "€r   r   r   f   s"   ø€ ÷ 3ñ 3™8ð 3¨,ð 3À.ñ 3r   c                óš   <€ V P                  V4      p\        V4      p\        VP                  R4      VR7      VR&   \        SV `  WR7      # )z,See :meth:`telegram.TelegramObject.de_json`.r   )Útzinfo©r*   r+   )Ú_parse_datar   r   Úgetr!   Úde_json)Úclsr*   r+   Ú
loc_tzinfor'   s   &&& €r   r4   ÚPassportFile.de_jsone   sJ   ø€ ð �‰˜tÓ$ˆô 2°#Ó6ˆ
Ü*¨4¯8©8°KÓ+@ÈÔTˆˆ[Ñä‰w‰ DˆÓ2Ð2r   c                ó,   <€ V ^8„  d   QhRS[ RRRRRR/# )r   r*   r+   r,   r   r   r-   r   r.   )r   r   s   "€r   r   r   q   s-   ø€ ÷ 3ñ 3Ùð3Ø".ð3Ø=Nð3à	ñ3r   c                óN   <€ V P                  V4      pW1R&   \        SV `	  WR7      # )a—  Variant of :meth:`telegram.TelegramObject.de_json` that also takes into account
passport credentials.

Args:
    data (dict[:obj:`str`, ...]): The JSON data.
    bot (:class:`telegram.Bot` | :obj:`None`): The bot associated with these object.
        May be :obj:`None`, in which case shortcut methods will not be available.

        .. versionchanged:: 21.4
           :paramref:`bot` is now optional and defaults to :obj:`None`

        .. deprecated:: 21.4
           This argument will be converted to an optional argument in future versions.
    credentials (:class:`telegram.FileCredentials`): The credentials

Returns:
    :class:`telegram.PassportFile`:

r   r1   )r2   r!   r4   )r5   r*   r+   r   r'   s   &&&&€r   Úde_json_decryptedÚPassportFile.de_json_decryptedp   s,   ø€ ð. �‰˜tÓ$ˆà)ˆ]Ñä‰w‰ DˆÓ2Ð2r   c          	      ó\   <€ V ^8„  d   QhRS[ S[,          RRRS[ R,          RS[R,          /# )r   r*   r+   r,   r   r   r-   )r   .)Úlistr   Útuple)r   r   s   "€r   r   r   Ž   sC   ø€ ÷ $
ñ $
á‘8�nð$
ð ð$
ñ Ð+Õ,ð	$
ñ
 
Ð"Õ	#ñ$
r   c                ó´   a aa€ \         ;QJ d)    . R VV V3R l\        V4       4        4       F  NK  	  5# ! R VV V3R l\        V4       4        4       4      # )a  Variant of :meth:`telegram.TelegramObject.de_list` that also takes into account
passport credentials.

.. versionchanged:: 20.0

   * Returns a tuple instead of a list.
   * Filters out any :obj:`None` values

Args:
    data (list[dict[:obj:`str`, ...]]): The JSON data.
    bot (:class:`telegram.Bot` | :obj:`None`): The bot associated with these object.
        May be :obj:`None`, in which case shortcut methods will not be available.

        .. versionchanged:: 21.4
           :paramref:`bot` is now optional and defaults to :obj:`None`

        .. deprecated:: 21.4
           This argument will be converted to an optional argument in future versions.
    credentials (:class:`telegram.FileCredentials`): The credentials

Returns:
    tuple[:class:`telegram.PassportFile`]:

c              3   ó&   "  € T F  pVx € K	  	  R # 5i©N© )Ú.0Úobjs   & r   Ú	<genexpr>Ú1PassportFile.de_list_decrypted.<locals>.<genexpr>¬   s   é € ð 
ñ�õ óùs   ‚c              3   ó\   <"  € T F!  w  rSP                  VSSV,          4      x € K#  	  R # 5irA   )r:   )rC   ÚiÚpassport_filer+   r5   r   s   &  €€€r   rE   rF   ®   s1   øé € ð á(7Ñ$�Að ×%Ñ% m°S¸+Àa½.×IÐIÛ(7ùs   ƒ),)r>   Ú	enumerate)r5   r*   r+   r   s   f&ffr   Úde_list_decryptedÚPassportFile.de_list_decrypted�   sS   ú€ ÷> Œuñ 
öä(1°$¬ôó
�uð 	
ˆuñ 
öä(1°$¬ôó
ó 
ð 	
r   Úread_timeoutÚwrite_timeoutÚconnect_timeoutÚpool_timeoutc                óŠ   <€ V ^8„  d   QhRS[ S[,          RS[ S[,          RS[ S[,          RS[ S[,          RS[R,          RR/# )	r   rM   rN   rO   rP   r   Nr-   r
   )r   Úfloatr   )r   r   s   "€r   r   r   ´   s]   ø€ ÷ !ñ !ñ ™u•oð!ñ  ¡•ð	!ñ
 "¡%�ð!ñ ™u•oð!ñ ˜t•Oð!ð 
ñ!r   c          	   ƒ  óÚ   "  € V P                  4       P                  V P                  VVVVVR7      G Rj  x€L
 pV P                  '       d   VP	                  V P                  4       V#  L35i)at  
Wrapper over :meth:`telegram.Bot.get_file`. Will automatically assign the correct
credentials to the returned :class:`telegram.File` if originating from
:attr:`telegram.PassportData.decrypted_data`.

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

Returns:
    :class:`telegram.File`

Raises:
    :class:`telegram.error.TelegramError`

)r   rM   rN   rO   rP   r   N)Úget_botÚget_filer   r#   Úset_credentials)r&   rM   rN   rO   rP   r   Úfiles   &$$$$$ r   rU   ÚPassportFile.get_file´   si   é € ð. —\‘\“^×,Ñ,Ø—L‘LØ%Ø'Ø+Ø%Ø!ð -ó 
÷ 
ˆð ××ÐØ× Ñ  ×!2Ñ!2Ô3Øˆñ
ùs   ‚3A+µA)¶A+ÁA+)r#   r$   r   r   r   r   )r#   r   r   r   r   rA   )Ú__name__Ú
__module__Ú__qualname__Ú__firstlineno__Ú__doc__Ú	__slots__r"   Úclassmethodr4   r:   rK   r   rU   Ú__static_attributes__Ú__classdictcell__Ú__classcell__)r'   r   s   @@r   r   r   !   s®   ù‡ € ñ ðD€Iñð '+÷ö ð2 ÷3ô 3ó ð3ð ÷3ò 3ó ð3ð8 ÷$
ó ð$
ðL!ð )5ð!ð *6ð	!ð
 ,8ð!ð )5ð!ð '+÷!÷ !ò !r   r   )r]   r   r   Útypingr   Útelegram._telegramobjectr   Útelegram._utils.datetimer   r   Útelegram._utils.defaultvaluer   Útelegram._utils.typesr   r   Útelegramr	   r
   r   r   rB   r   r   Ú<module>ri      s4   ðñ& Oã Ý  å 3ß QÝ 5ß 4çß3Ñ3ôt�>ö tr   