Multiple Virtualizor Panel and VPS Manager with Bandwidth Checker and Notifier option under TelegramBot
Feature | Supported |
---|---|
Adding Unlimited Panels | ✅ |
Adding Unlimited VPSs | ✅ |
Fully VPS-Level Customizable | ✅ |
Real-Time Info Update | ✅ |
Free & Easy to Use | ✅ |
To make a telegram bot:
- start the BotFather in telegram: https://t.me/BotFather
- Create a bot, BotFather will send you its api_token, Save it!
To gain api access of your Virtualizor account:
- Login to your account and click on your username on the top and then click on "API Credentials"
- On the "Create API Credentials" tab, click on "Create API Key Pair"
- Back on "List API Credentials" tab, you can see generated "API Key" and "API Password", Save it!
The IP address of your Virtualizor Panel IP given to you by the administrator, Usualy ends with 4083 port!
Linux: You can use Install script to do these actions.
bash <(curl -Ls https://raw.githubusercontent.com/Ashaxer/VirtualizorPanel/main/install.sh)
or you can install manually:
cd
git clone https://github.com/Ashaxer/VirtualizorPanel
cd VirtualizorPanel
Windows: simply download the project as zip and extract it in a folder
Linux:
nano config.env
after finishing, Press Ctrl + S to save and then Ctrl + X to exit the editor.
Windows: use notepad or notepad++ or other text-editing tools and edit the db.json file.
Insert your Telegram api_token in front of TELEGRAM_BOT_TOKEN (Optional)Insert your Proxy info needed for connecting to Telegram servers
You need to have python and requests on your machine: Linux:
apt-get update -y
apt-get upgrade -y
apt-get install python3
apt-get install python3-pip
pip install -r requirements.txt
Windows: Download and install latest python from https://Python.org
after installing python, open the extracted folder and type "cmd" on your address bar and hit Enter
in Command Prompt window, enter following command:
python -m pip install -r requirements.txt
Linux:
python3 telegrambot.py
alternatively you can install Screen package on your machine and use it to check the logs and prevent closing the proccess:
apt install screen
screen -dmS VirtualizorPanel sh -c 'cd /root/VirtualizorPanel/ && /usr/bin/python3 telegrambot.py'
to Enter the screen:
screen -r VirtualizorPanel
to Detach from screen, Press Ctrl + A + D keys simultaneously.
Although you can set this command to run every startup using following line:
{ crontab -l -u root; echo "@reboot /bin/bash screen -dmS VirtualizorPanel sh -c 'cd /root/VirtualizorPanel/ && /usr/bin/python3 telegrambot.py' >/dev/null 2>&1"; } | crontab -u root -
Windows: Double click the telegrambot.py file...?
Linux: You can use update script to do these actions.
bash <(curl -Ls https://raw.githubusercontent.com/Ashaxer/VirtualizorPanel/main/update.sh)
or you can update it manually: to achieve that, simply backup these two files somewhere: database.pkl, config.env
Linux:
mkdir /var/tmp/VP-Backup
cp /root/VirtualizorPanel/config.env /var/tmp/VP-Backup/config.env
cp /root/VirtualizorPanel/database.pkl /var/tmp/VP-Backup/database.pkl
Windows: Go to the application folder and copy database.pkl and config.env files somewhere else.
To update, close the application and remove it's folder and follow the Install process again
screen -XS VirtualizorPanel quit
pkill -f "telegrambot.py"
cd
rm -rf /root/VirtualizorPanel
git clone https://github.com/Ashaxer/VirtualizorPanel
cd VirtualizorPanel
after reinstalling the program, restore the backedup files and rerun the application: Linux:
cp /var/tmp/VP-Backup/config.env /root/VirtualizorPanel/config.env
cp /var/tmp/VP-Backup/database.pkl /root/VirtualizorPanel/database.pkl
screen -dmS VirtualizorPanel sh -c 'cd /root/VirtualizorPanel/ && /usr/bin/python3 telegrambot.py'
Windows: Copy database.pkl and config.env files (which you backed up earlier) into the extracted application folder and run the "telegrambot.py" file