Skip to content

Latest commit

 

History

History
53 lines (37 loc) · 1.65 KB

File metadata and controls

53 lines (37 loc) · 1.65 KB

Telegram bot to generate pyrogram and telethon string session.

Open Source Love svg1

Local Deploying

  1. Clone the repo

    git clone https://github.com/SayaProject/StringSessionBot
  2. Get a DATABASE_URL. If you don't know how, deploy using Heroku Button only or delete database things as it's not a compulsion.

  3. Rename .env.sample to .env and fill the needed variables

  4. Enter the directory

    cd StringSessionBot
  5. Install all the dependencies

    pip install -r requirements.txt
  6. Run the file

    python3 bot.py

Environment Variables

Mandatory Vars

  • API_ID - Get this from my.telegram.org
  • API_HASH - Get this from my.telegram.org
  • BOT_TOKEN - Get this from @BotFather
  • DATABASE_URL - Will be automatically added by Heroku.
  • MUST_JOIN - Username/ID of your telegram channel/group.

Functions

  • Generate Pyrogram user string session
  • Generate Pyrogram bot string session
  • Generate Pyrogram (Major) Version 1 and 2 string sessions
  • Generate Telethon string session

Credits