This is a simple python script to generate the session string for the python Pyrogram library.
- Run the following code
pip install -r requirements.txt
- Execute the python code
python session_string_pyrogram.py
- Insert the api_hash and api_id when prompted found in this link Telegram
- Enter the phone number and the verification code that is sent to your Telegram
- If you have a double factor, insert your password and wait for the session string to be generated, if not, simply wait for it to be generated