Skip to content

Latest commit

 

History

History
82 lines (67 loc) · 1.61 KB

README.md

File metadata and controls

82 lines (67 loc) · 1.61 KB

Mtproxybot

Manage your mtproto proxies in Telegram bot

Give a star if you like it

Installation

  1. Install the MTProtoProxyInstaller project
  2. Install the Node.js
sudo apt update && sudo apt install curl -y
curl https://raw.githubusercontent.com/creationix/nvm/master/install.sh | bash 
source ~/.bashrc  
nvm install v20.10.0  
nvm install node 
  1. Clone this project in the root of your server
git clone https://github.com/mmdzov/mtproxybot.git
  1. Install pm2 globally
npm i pm2 -g
  1. Go to the project path
cd mtproxybot
  1. Install the dependencies
npm i
  1. Change .env.example to .env
mv .env.example .env
  1. Build your bot on @botfather and keep the token with you

  2. Get your user ID from the @userinfobot bot and keep it with you

  3. Open the .env file with nano

nano .env
  1. 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
  1. Save the changes with CTRL + X, then y and finally enter

  2. Run the mtproxybot project

npm start

Bot commands

  1. /start - start the bot
  2. /reset - Reset bot status ( not proxy )

Screenshots

Image can't load