
    i	                     @    S SK r S SKJr  S SKrS SKJr   " S S5      rg)    N)List)idlec                   :    \ rS rSrS/ S.SSS\S\\   4S jjrS	rg
)Run   Fuse_qr
except_idsselfzpyrogram.Clientr	   r
   c                P   U R                   R                  n[        R                  " U R                  5      (       a<  U" U R	                  XS95        U" [        5       5        U" U R                  5       5        gU R	                  XS9  U" [        5       5        U R                  5         g)a  Start the client, idle the main script and finally stop the client.

When calling this method without any argument it acts as a convenience method that calls
:meth:`~pyrogram.Client.start`, :meth:`~pyrogram.idle` and :meth:`~pyrogram.Client.stop` in sequence.
It makes running a single client less verbose.

If you want to run multiple clients at once, see :meth:`pyrogram.compose`.

Parameters:
    use_qr (``bool``, *optional*):
        Use QR code authorization instead of the interactive prompt.
        For new authorizations only.
        Defaults to False.

    except_ids (List of ``int``, *optional*):
        List of already logged-in user IDs, to prevent logging in twice with the same user.

Raises:
    ConnectionError: In case you try to run an already started client.

Example:
    .. code-block:: python

        from pyrogram import Client

        app = Client("my_account")
        ...  # Set handlers up
        app.run()
r   N)looprun_until_completeinspectiscoroutinefunctionstartr   stop)r   r	   r
   runs       K/app/mltbenv/lib/python3.13/site-packages/pyrogram/methods/utilities/run.pyr   Run.run   ss    D ii**&&tzz22

&
@AK		JJfJ<KIIK     N)	__name__
__module____qualname____firstlineno__boolr   intr   __static_attributes__r   r   r   r   r      s2      "+++ I+ +r   r   )r   typingr   pyrogrampyrogram.methods.utilities.idler   r   r   r   r   <module>r"      s   &    0, ,r   