erfjab / holderbot

Telegram bot for managing the Marzban panel with unique capabilities.
https://t.me/Erfjabs
246 stars 63 forks source link
bot free holderbot marzban marzban-api-python open-source project-x pyrogram pyrogram-bot python3 telegram telegram-bot v2rayn v2rayng

1. Server Setup

1.1: Update the Server

Ensure your server is up to date:

sudo apt update && sudo apt upgrade -y

1.2: Install Docker

Install Docker using this command:

curl -fsSL https://get.docker.com | sh

2. Download and Configure

2.1: Create Directory and Download docker-compose.yml

Create the necessary directory and download the docker-compose.yml file:

mkdir -p /opt/erfjab/holderbot/data
curl -o /opt/erfjab/holderbot/docker-compose.yml https://raw.githubusercontent.com/erfjab/holderbot/master/docker-compose.yml
cd /opt/erfjab/holderbot

2.2: Download and Configure .env

Download the example environment file:

curl -o .env https://raw.githubusercontent.com/erfjab/holderbot/master/.env.example

Edit the .env file to add your Telegram Bot Token and API keys:

nano .env

3. Run the Bot

3.1: Pull the Latest Docker Image

Pull the latest Docker image for the bot:

docker compose pull

3.2: Start the Bot

Start the bot in detached mode:

docker compose up -d

3.3: Verify the Bot is Running

Check the status of running containers:

docker compose ps

Updating the Bot

To update the bot to the latest version:

  1. Pull the latest Docker image:

    docker compose pull
  2. Restart the bot:

    docker compose up -d

Managing the Bot with Docker

Restart the Bot

docker compose restart

Stop the Bot

docker compose down

View Real-Time Logs

docker compose logs -f

Contact & Support

Feel free to ⭐ the project to show your support!

Stargazers over time