Manage your mtproto proxies in Telegram bot
Give a star if you like it
- Install the MTProtoProxyInstaller project
- Install the Node.js
sudo apt update && sudo apt install curl -ycurl https://raw.githubusercontent.com/creationix/nvm/master/install.sh | bash source ~/.bashrc nvm install v20.10.0 nvm install node - Clone this project in the root of your server
git clone https://github.com/mmdzov/mtproxybot.git- Install pm2 globally
npm i pm2 -g- Go to the project path
cd mtproxybot- Install the dependencies
npm i- Change .env.example to .env
mv .env.example .env-
Build your bot on
@botfatherand keep the token with you -
Get your user ID from the
@userinfobotbot and keep it with you -
Open the .env file with nano
nano .env- Put the values received in 8 and 9 in front of =
TOKEN=YOUR_BOT_TOKEN
USER_IDS=YOUR_USER_ID
Note: You can define multiple admins. The only thing you have to do is to separate the users defined in the USER_IDS field with commas ( , ). for example:
TOKEN=YOUR_BOT_TOKEN
USER_IDS=YOUR_USER_ID_1,YOUR_USER_ID_2,YOUR_USER_ID_3
-
Save the changes with
CTRL + X, thenyand finallyenter -
Run the mtproxybot project
npm start- /start - start the bot
- /reset - Reset bot status ( not proxy )
