Ë
    N[ÎiE  ã                   ó    — d dl Z  G d„ d«      Zy)é    Nc                   ó    — e Zd Z	 ddddefd„Zy)ÚStopÚselfzpyrogram.ClientÚblockc              ƒ   ó„   ‡ K  — ˆ fd„}|r |«       ƒ d{  –—†  ‰ S ‰ j                   j                   |«       «       ‰ S 7 Œ(­w)a°  Stop the Client.

        This method disconnects the client from Telegram and stops the underlying tasks.

        Parameters:
            block (``bool``, *optional*):
                Blocks the code execution until the client has been stopped. It is useful with ``block=False`` in case
                you want to stop the own client *within* a handler in order not to cause a deadlock.
                Defaults to True.

        Returns:
            :obj:`~pyrogram.Client`: The stopped client itself.

        Raises:
            ConnectionError: In case you try to stop an already stopped client.

        Example:
            .. code-block:: python

                from pyrogram import Client

                app = Client("my_account")


                async def main():
                    await app.start()
                    ...  # Invoke API methods
                    await app.stop()


                app.run(main())
        c               “   óv   •K  — ‰ j                  «       ƒ d {  –—†  ‰ j                  «       ƒ d {  –—†  y 7 Œ7 Œ­w)N)Ú	terminateÚ
disconnect)r   s   €úR/var/www/files/kim/lib/python3.12/site-packages/pyrogram/methods/utilities/stop.pyÚdo_itzStop.stop.<locals>.do_it<   s0   øè ø€ Ø—.‘.Ó"×"Ð"Ø—/‘/Ó#×#Ñ#ð #øØ#ús   ƒ9—5˜9¯7°9·9N)ÚloopÚcreate_task)r   r   r   s   `  r   Ústopz	Stop.stop   sB   øè ø€ ôJ	$ñ Ù“'MˆMð ˆð I‰I×!Ñ!¡%£'Ô*àˆð	 ús   ƒA •>–)A N)T)Ú__name__Ú
__module__Ú__qualname__Úboolr   © ó    r   r   r      s   „ ð ñ.Øð.àô.r   r   )Úpyrogramr   r   r   r   ú<module>r      s   ðó& ÷/ò /r   