Skip to content

Telegram bot on Marzban for Free VPN access with Outline and Xray Core client support

Notifications You must be signed in to change notification settings

bl4ckm45k/vpnbot

Repository files navigation

Source code of the Telegram bot bl4ckm45k_vpn_bot

If you need a bot for providing paid access:

Setup

  • Clone this repository
  • Navigate to the bot's directory
cd vpnbot

Rename the file env.dist to .env

cat env.dist > .env

Replace BOT_TOKEN with your token

In ADMIN, specify the Telegram user ID of the administrator.

You can find out your user ID through the Get My ID bot

Do not change the parameters USE_WEBHOOK and False, otherwise the bot will not work.

Other parameters are not used in the open-source version.

Marzban Parameters

To set up the login and password, change the variables SUDO_USERNAME and SUDO_PASSWORD in the .env.marzban file.

Launch

docker compose up --detach

Done. The bot will output all host keys from the Marzban panel.

The Marzban panel will be accessible on port 8002