o
    
{g<	                     @   s8   d dl Z d dlZd dlmZ e eZG dd dZdS )    N)rawc                   @   s   e Zd Z		dddZdS )Startselfpyrogram.Clientc              	      s   |   I dH }z7|s|  I dH  | j I dH s2| jr2| tjj	 I dH j
| _td| j | tjj I dH  W n ttfyP   |  I dH   w |  I dH | _|  I dH  | S )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	ExceptionKeyboardInterrupt
disconnectget_meme
initialize)r   is_authorized r   }/var/www/bot.gig.net.ua/public_html/telegram/P1/HellBot/venv/lib/python3.10/site-packages/pyrogram/methods/utilities/start.pystart   s    zStart.startN)r   r   )__name__
__module____qualname__r   r   r   r   r   r      s    r   )loggingpyrogramr   	getLoggerr   r   r   r   r   r   r   <module>   s
   
