Skip to content

SudoR2spr/Telethon-Session-Generator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

5 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

Telegram Session String Generator πŸ”‘

Generate Telegram session strings easily using this Google Colab notebook. Perfect for developers building Telegram bots or tools with Telethon!

Demo

πŸ“‹ Prerequisites

  • Google Account (to use Colab)
  • Verified Telegram account
  • Basic Python knowledge

πŸš€ Quick Start

1. Open the Colab Notebook

Colab Link

2. Run the Notebook

  1. Install Dependencies
    Run the first code cell to install Telethon:

    !pip install telethon
  2. Enter API Credentials
    Get your API_ID and API_HASH from: my.telegram.org β†’ API development tools

  3. Run Session Generator
    Follow the prompts:

    [?] Enter API ID: 1234567
    [?] Enter API HASH: a1b2c3d4e5f6g7h8i9j0
    [?] Phone Number (+1XXX): +1234567890

3. Verify Login

  • You'll receive a verification code via Telegram
  • Enter the code in Colab when prompted
  • If 2FA is enabled, provide your password

4. Get Session String

The session string will be:

  1. Printed in Colab outputs
  2. Sent to your Telegram Saved Messages:
    ⚠️ **βœ”οΈ Your Session String:**
    πŸ’» Developer: π–πŽπŽπƒπœπ«πšπŸπ­
    ⚠️ Warning: Never share this with anyone! 🀫
    
    `1AbcDEfghIJKlmnOPqrStuVWXYz0123456789abcDEFghiJKLmnoPQRStuvWXYZ=`
    

⚠️ Security Tips

  • πŸ”’ Never share your session string
  • πŸ—‘οΈ Delete old/unused sessions
  • πŸ€– Only use with trusted bots
  • πŸ“› Revoke suspicious sessions via Telegram Settings

πŸ†˜ Support

For help: