Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/M4hbod/UniversalGeneratorBot
Pyrogram and Telethon String Session Generator - Persian
https://github.com/M4hbod/UniversalGeneratorBot
Last synced: 3 months ago
JSON representation
Pyrogram and Telethon String Session Generator - Persian
- Host: GitHub
- URL: https://github.com/M4hbod/UniversalGeneratorBot
- Owner: M4hbod
- License: agpl-3.0
- Created: 2022-06-21T13:47:58.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2023-02-04T09:58:00.000Z (almost 2 years ago)
- Last Synced: 2024-06-28T06:36:31.937Z (5 months ago)
- Language: Python
- Homepage: https://t.me/StarkStringGenBot
- Size: 39.1 KB
- Stars: 3
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Pyrogram and Telethon String Session Bot [@UniversalGeneratorBot](https://t.me/UniversalGeneratorBot) is Persian | فارسی
Telegram bot to generate pyrogram and telethon string session.
[![Open Source Love svg1](https://badges.frapsoft.com/os/v1/open-source.svg?v=103)](https://github.com/ellerbrock/open-source-badges/)
## Usage
### Deploy to Heroku
[![Deploy](https://www.herokucdn.com/deploy/button.svg)](https://heroku.com/deploy?template=https://github.com/M4hbod/UniversalGeneratorBot)
1. Tap on above button and fill `API_ID`, `API_HASH`, `BOT_TOKEN` (and `MUST_JOIN`).
2. Then tap "Deploy App" below it. Wait till deploying is complete (will take atmost 2 minutes).
3. After deploying is complete, tap on "Manage App"
4. Check the logs to see if your bot is ready!### Local Deploying
1. Clone the repo
```markdown
git clone https://github.com/M4hbod/UniversalGeneratorBot
```
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 variables4. Enter the directory
```markdown
cd UniversalGeneratorBot
```5. Install all the dependencies
```markdown
pip install -r requirements.txt
```6. Run the file
```markdown
python3 bot.py
```## Environment Variables
#### Mandatory Vars
- `API_ID` - Get this from [my.telegram.org](https://my.telegram.org/auth)
- `API_HASH` - Get this from [my.telegram.org](https://my.telegram.org/auth)
- `BOT_TOKEN` - Get this from [@BotFather](https://t.me/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
- [Dan Tès](https://github.com/delivrance) for his [Pyrogram](https://docs.pyrogram.org) Library
- [Lonami](https://github.com/Lonami) for his [Telethon](https://docs.telethon.dev) Library
- [aylak](https://t.me/ayIak) for **Telethon** idea of [v1.0.0](https://github.com/StarkBotsIndustries/UniversalGeneratorBot/commit/48e06bb6d9ed156797ef4bc0dab88820fef948f3)
- [Stark](https://github.com/StarkBotsIndustries) for the whole bot