Generate Telegram session strings easily using this Google Colab notebook. Perfect for developers building Telegram bots or tools with Pyrogram!
- Google Account (to use Colab)
- Verified Telegram account
- Basic Python knowledge
-
Enter API Credentials
Get yourAPI_ID
andAPI_HASH
from: my.telegram.org β API development tools -
Run Session Generator
Follow the prompts:[?] Enter API ID: 1234567 [?] Enter API HASH: a1b2c3d4e5f6g7h8i9j0 [?] Phone Number (+1XXX): +1234567890
- You'll receive a verification code via Telegram
- Enter the code in Colab when prompted
- If 2FA is enabled, provide your password
The session string will be:
- Printed in Colab outputs
- Sent to your Telegram Saved Messages:
β οΈ **βοΈ Your Session String:** π» Developer: ππππππ«πππ β οΈ Warning: Never share this with anyone! π€« `1AbcDEfghIJKlmnOPqrStuVWXYz0123456789abcDEFghiJKLmnoPQRStuvWXYZ=`
- π Never share your session string
- ποΈ Delete old/unused sessions
- π€ Only use with trusted bots
- π Revoke suspicious sessions via Telegram Settings
For help:
- Join our Telegram Group
- Report issues on GitHub
- Contact Developer:
@Farooq_is_king