DETAILED GUIDE TO GENERATE TELEGRAM SESSION STRING. (Pyrogram)❓
What is session string?A Telegram session string is a unique identifier that allows Pyrogram/Telethon to access your Telegram account efficiently without login.
🖥
Required Credentials:To generate a session string, you need -
• Telegram API ID
• Telegram API Hash
• Your phone number (linked to your account)
• 2 Step Verification password (if enabled)
🔒
Obtaining Your API ID and API Hash:1. Go to
my.telegram.org/auth & login to your account.
2. Select App development tools > Create a new application. > Choose a name and description.
3. Note down your API ID and API hash. Keep these absolutely secret. You'll need these later.
🥂
Generating the Session String in Termux:1. Install Termux from F-Droid website. (Don't install from Playstore)
2. Run the commands in your terminal one by one to setup:
CLICK HERE TO VIEW COMMANDS3. You're now inside of session.py file. I will provide a file, open it and copy the code carefully. Paste it inside the file.
CLICK HERE TO GET THE FILE4. No need to modify it. Just click CTRL+X, then y, then enter to save it.
5. Use the command: python session.py
6. If the code works without any error, enter your API ID, API Hash, Phone number & verification code. (And password if 2 Step Verification is enabled)
7. As the login done without any error, you will get the session string in your
Saved messages.FACING AN ISSUE?Comment down or
TEXT ME HERE ☠️