
    N[i<	                     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)Startc                   K   | j                          d{   }	 |s| j                          d{    | j                  j                          d{   sz| j                  rn| j                  t        j                  j                  j                                d{   j                  | _        t        j                  d| j                         | j                  t        j                  j                  j                                d{    | j!                          d{   | _        | j%                          d{    | S 7 27 7 7 7 E7 /7 # t&        t(        f$ r | j+                          d{  7    w xY ww)a  Start the client.

        This method connects the client to Telegram and, in case of new sessions, automatically manages the
        authorization process using an interactive prompt.

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

        Raises:
            ConnectionError: In case you try to start an already started 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())
        NzTakeout session %s initiated)connect	authorizestorageis_bottakeoutinvoker   	functionsaccountInitTakeoutSessionid
takeout_idloginfoupdatesGetStateget_meme
initialize	ExceptionKeyboardInterrupt
disconnect)selfis_authorizeds     S/var/www/files/kim/lib/python3.12/site-packages/pyrogram/methods/utilities/start.pystartzStart.start   s"    < #lln,	 nn&&&,,...4<<)-S]]5J5J5]5]5_)`#`"d"d7I++cmm33<<>???
 !KKM)DG//###K% - '.#` @
 *# ,- 	//###	s   FEFE E!E EA
E EA-E EE F$E%FEFE E E E FF"F:E=;FFN)r   zpyrogram.Client)__name__
__module____qualname__r        r   r   r      s    00r$   r   )loggingpyrogramr   	getLoggerr    r   r   r#   r$   r   <module>r(      s,   &   g!1 1r$   