https://github.com/bipinkrish/multibots
Run Multiple Bots in One Instance
https://github.com/bipinkrish/multibots
pyrogram telegram-bot telegram-bot-api
Last synced: 11 months ago
JSON representation
Run Multiple Bots in One Instance
- Host: GitHub
- URL: https://github.com/bipinkrish/multibots
- Owner: bipinkrish
- Created: 2023-03-14T11:19:51.000Z (about 3 years ago)
- Default Branch: main
- Last Pushed: 2023-03-14T11:20:15.000Z (about 3 years ago)
- Last Synced: 2025-06-28T02:52:34.611Z (11 months ago)
- Topics: pyrogram, telegram-bot, telegram-bot-api
- Language: Python
- Homepage:
- Size: 2.93 KB
- Stars: 25
- Watchers: 1
- Forks: 19
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# MultiBots
_Have you encountered the problem where you have to host less resource intense Telegram Bots for free and you can only host a bot for an account but you wanted to host all bots in one instance, well say no more..._
_You can run multiple bots in a same instance, for now it only works for pure python bots (no docker support yet) but you need to host this on services which provide Docker support._
---
## Guide
1. *Fork this repositary*
2. *Edit CONFIG.json to your liking*
3. *Host that repositary*
4. *Profit*
---
## Features
* **Stay Updated** since it clones from GitHub.
* **Extend** you can extend this to any number of bots by just adding more objects (see [Example](#example) below) although i recommend not to exceed 5 for 500 MB memory.
* **ENVs** you can set different ENV values for different bots even with same name.
* **Control** you can also set script file from where execution starts for that bot.
* **Private** you can also clone private repositories with help of Tokens. (see [Example](#example) below)
* **Web App** uses Flask to connect to service, so that it can be hosted as Dynamic Web Apps which is required for services like [render](https://render.com/), [scalingo](https://scalingo.com/) etc.
---
## Example
```
{
"Ebook": {
"source": "https://github.com/bipinkrish/Ebooks-Bot.git",
"env": {
"TOKEN": "xxx",
"ID": "111",
"HASH": "yyy",
"REMIX_ID": "123",
"REMIX_KEY": "abc123",
"IA_EMAIL": "abcd@gmail.com",
"IA_PASS": "pass@gmail.com"
},
"run": "main.py"
},
"Link": {
"source": "https://github.com/bipinkrish/Link-Bypasser-Bot.git",
"env": {
"TOKEN": "fff",
"ID": "222",
"HASH": "123abc"
},
"run": "app.py"
},
"Private": {
"source": "https://bipinkrish:ghp_token@github.com/bipinkrish/private.git",
"env": {
"TOKEN": "yyy",
"ID": "444",
"HASH": "abc321"
},
"run": "bot.py"
}
}
```