Ë
    :É„j  ã                   óX   — d dl Z d dlZd dlmZ  e j                  e«      Z G d„ d«      Zy)é    N)Úrawc                   ó   — e Zd Z	 	 dd„Zy)Ú	Terminatec              ƒ   ó  K  — | j                   st        d«      ‚| j                  r_| j                  t        j
                  j                  j                  «       «      ƒ d{  –—†  t        j                  d| j                  «       | j                  j                  «       ƒ d{  –—†  | j                  j                  «       ƒ d{  –—†  | j                  j                  «       D ]  }|j                  «       ƒ d{  –—†  Œ | j                  j!                  «        | j"                  j%                  «        | j&                  �| j&                  ƒ d{  –—†  | j"                  j!                  «        d| _         y7 �Œ7 ŒÖ7 Œ¶7 Œƒ7 Œ/­w)aF  Terminate the client by shutting down workers.

        This method does the opposite of :meth:`~pyrogram.Client.initialize`.
        It will stop the dispatcher and shut down updates and download workers.

        Raises:
            ConnectionError: In case you try to terminate a client that is already terminated.
        zClient is already terminatedNzTakeout session %s finishedF)Úis_initializedÚConnectionErrorÚ
takeout_idÚinvoker   Ú	functionsÚaccountÚFinishTakeoutSessionÚlogÚinfoÚstorageÚsaveÚ
dispatcherÚstopÚmedia_sessionsÚvaluesÚclearÚupdates_watchdog_eventÚsetÚupdates_watchdog_task)ÚselfÚmedia_sessions     úV/var/www/html/GAP/venv/lib/python3.12/site-packages/pyrogram/methods/auth/terminate.pyÚ	terminatezTerminate.terminate   s/  è ø€ ð ×"Ò"Ü!Ð"@ÓAÐAà�?Š?Ø—+‘+œcŸm™m×3Ñ3×HÑHÓJÓK×KÐKÜ�H‰HÐ2°D·O±OÔDà�l‰l×ÑÓ!×!Ð!Ø�o‰o×"Ñ"Ó$×$Ð$à!×0Ñ0×7Ñ7Ó9ò 	'ˆMØ×$Ñ$Ó&×&Ñ&ð	'ð 	×Ñ×!Ñ!Ô#à×#Ñ#×'Ñ'Ô)à×%Ñ%Ð1Ø×,Ñ,×,Ð,à×#Ñ#×)Ñ)Ô+à#ˆÕð% Lùð 	"øØ$øð 'øð -ús\   ‚AFÁ E6Á!AFÂ"E9Â#!FÃE;Ã4FÃ9E=Ã:AFÅE?Å'FÅ9FÅ;FÅ=FÅ?FN)r   zpyrogram.Client)Ú__name__Ú
__module__Ú__qualname__r   © ó    r   r   r      s   „ ð"$Øô"$r"   r   )ÚloggingÚpyrogramr   Ú	getLoggerr   r   r   r!   r"   r   ú<module>r&      s,   ðó( ã Ý à€g×Ñ˜Ó!€÷#$ò #$r"   