Ë
    :É„j  ã                   óD   — d dl Z d dlZd dlmZ d dlmZmZ  G d„ d«      Zy)é    N)Úabstractmethod)ÚListÚTuplec            	       óF  — e Zd ZdZdZdZdZdZdefd„Z	d„ Z
d	„ Zd
„ Zd„ Zdeeeeeeef      fd„Zdeeeef      fd„Zeefdeeeeeef   fd„«       Zdefd„Zdefd„Zdefd„Zefdefd„Zefdefd„Zefdefd„Zefdefd„Zefdefd„Zefdefd„Z efdefd„Z!d „ Z"y!)"ÚStoragez	>B?256sI?z	>B?256sQ?i_  id  z
>BI?256sQ?Únamec                 ó   — || _         y ©N)r   )Úselfr   s     úO/var/www/html/GAP/venv/lib/python3.12/site-packages/pyrogram/storage/storage.pyÚ__init__zStorage.__init__"   s	   € Øˆ�	ó    c              ƒ   ó   K  — t         ‚­wr
   ©ÚNotImplementedError©r   s    r   ÚopenzStorage.open%   ó   è ø€ Ü!Ð!ùó   ‚	c              ƒ   ó   K  — t         ‚­wr
   r   r   s    r   ÚsavezStorage.save(   r   r   c              ƒ   ó   K  — t         ‚­wr
   r   r   s    r   ÚclosezStorage.close+   r   r   c              ƒ   ó   K  — t         ‚­wr
   r   r   s    r   ÚdeletezStorage.delete.   r   r   Úpeersc              ƒ   ó   K  — t         ‚­wr
   r   )r   r   s     r   Úupdate_peerszStorage.update_peers1   r   r   Ú	usernamesc              ƒ   ó   K  — t         ‚­wr
   r   )r   r   s     r   Úupdate_usernameszStorage.update_usernames4   r   r   Úupdate_statec              ƒ   ó   K  — t         ‚­w)a¼  Get or set the update state of the current session.

        Parameters:
            update_state (``Tuple[int, int, int, int, int]``): A tuple containing the update state to set.
                Tuple must contain the following information:
                - ``int``: The id of the entity.
                - ``int``: The pts.
                - ``int``: The qts.
                - ``int``: The date.
                - ``int``: The seq.
        r   )r   r"   s     r   r"   zStorage.update_state7   s   è ø€ ô "Ð!ùr   Úpeer_idc              ƒ   ó   K  — t         ‚­wr
   r   )r   r$   s     r   Úget_peer_by_idzStorage.get_peer_by_idF   r   r   Úusernamec              ƒ   ó   K  — t         ‚­wr
   r   )r   r'   s     r   Úget_peer_by_usernamezStorage.get_peer_by_usernameI   r   r   Úphone_numberc              ƒ   ó   K  — t         ‚­wr
   r   )r   r*   s     r   Úget_peer_by_phone_numberz Storage.get_peer_by_phone_numberL   r   r   Úvaluec              ƒ   ó   K  — t         ‚­wr
   r   ©r   r-   s     r   Údc_idzStorage.dc_idO   r   r   c              ƒ   ó   K  — t         ‚­wr
   r   r/   s     r   Úapi_idzStorage.api_idR   r   r   c              ƒ   ó   K  — t         ‚­wr
   r   r/   s     r   Ú	test_modezStorage.test_modeU   r   r   c              ƒ   ó   K  — t         ‚­wr
   r   r/   s     r   Úauth_keyzStorage.auth_keyX   r   r   c              ƒ   ó   K  — t         ‚­wr
   r   r/   s     r   ÚdatezStorage.date[   r   r   c              ƒ   ó   K  — t         ‚­wr
   r   r/   s     r   Úuser_idzStorage.user_id^   r   r   c              ƒ   ó   K  — t         ‚­wr
   r   r/   s     r   Úis_botzStorage.is_bota   r   r   c              ƒ   óØ  K  — t        j                  | j                  | j                  «       ƒ d {  –—† | j	                  «       ƒ d {  –—† | j                  «       ƒ d {  –—† | j                  «       ƒ d {  –—† | j                  «       ƒ d {  –—† | j                  «       ƒ d {  –—† «      }t        j                  |«      j                  «       j                  d«      S 7 Œ­7 Œ˜7 Œƒ7 Œn7 ŒY7 ŒD­w)Nú=)ÚstructÚpackÚSESSION_STRING_FORMATr0   r2   r4   r6   r:   r<   Úbase64Úurlsafe_b64encodeÚdecodeÚrstrip)r   Úpackeds     r   Úexport_session_stringzStorage.export_session_stringd   s¦   è ø€ Ü—‘Ø×&Ñ&Ø—*‘*“,×Ø—+‘+“-×Ø—.‘.Ó"×"Ø—-‘-“/×!Ø—,‘,“.× Ø—+‘+“-×ó
ˆô ×'Ñ'¨Ó/×6Ñ6Ó8×?Ñ?ÀÓDÐDð øØøØ"øØ!øØ øØúsi   ‚.C*°C
±C*ÁC ÁC*ÁC"ÁC*Á5C$Á6C*ÂC&ÂC*Â#C(Â$;C*Ã C*Ã"C*Ã$C*Ã&C*Ã(C*N)#Ú__name__Ú
__module__Ú__qualname__ÚOLD_SESSION_STRING_FORMATÚOLD_SESSION_STRING_FORMAT_64ÚSESSION_STRING_SIZEÚSESSION_STRING_SIZE_64rA   Ústrr   r   r   r   r   r   r   Úintr   r!   r   Úobjectr"   r&   r)   r,   r0   r2   Úboolr4   Úbytesr6   r8   r:   r<   rG   © r   r   r   r      sI  „ Ø +ÐØ#.Ð ØÐØ Ðà(Ðð˜Só ò"ò"ò"ò"ð"¨¨U°3¸¸SÀ#ÀsÐ3JÑ-KÑ(Ló "ð"°°U¸3À¸8±_Ñ0Eó "ð ØPVñ "¨u°S¸#¸sÀCÈÐ5LÑ/Mò "ó ð"ð"¨Có "ð"°3ó "ð"¸3ó "ð (.ñ " ó "ð )/ñ " #ó "ð -3ñ " Tó "ð -3ñ " Eó "ð '-ñ " ó "ð *0ñ " 3ó "ð *0ñ " $ó "óEr   r   )rB   r?   Úabcr   Útypingr   r   r   rT   r   r   ú<module>rW      s!   ðó( Û Ý ß ÷UEò UEr   