Explore
Topics
Collections
Documents
FAQ
GitHub
Explore repos
Explore
Topics
Collections
Documents
FAQ
GitHub
Explore repos
Explore
/
PHP
/
mirzabot
mahdiMGF2 ¡
Trending
mahdiMGF2/mirzabot
bot pro for sell vpn
View on GitHub
Website / Demo
Copy link
Back to listing
674
stars
344
forks
10
contributors
PHP
README.md
View on GitHub
<div align="center"> # đ¤ Mirza Bot ### A powerful Telegram bot for selling VPN services â with fully automated config creation. <p> <a href="https://t.me/mirzapanel"> <img src="https://img.shields.io/badge/Telegram-Channel-2CA5E0?style=for-the-badge&logo=telegram&logoColor=white" alt="Telegram Channel"/> </a> <a href="https://t.me/mirzapanelgroup"> <img src="https://img.shields.io/badge/Telegram-Group-229ED9?style=for-the-badge&logo=telegram&logoColor=white" alt="Telegram Group"/> </a> <a href="https://mirzabot.com/docs/"> <img src="https://img.shields.io/badge/Docs-mirzabot.com-38BDF8?style=for-the-badge&logo=readthedocs&logoColor=white" alt="Documentation"/> </a> </p> <p> <a href="https://github.com/mahdiMGF2/mirzabot/stargazers"> <img src="https://img.shields.io/github/stars/mahdiMGF2/mirzabot?style=flat-square&color=f5c518" alt="Stars"/> </a> <a href="https://github.com/mahdiMGF2/mirzabot/network/members"> <img src="https://img.shields.io/github/forks/mahdiMGF2/mirzabot?style=flat-square" alt="Forks"/> </a> <a href="https://github.com/mahdiMGF2/mirzabot/issues"> <img src="https://img.shields.io/github/issues/mahdiMGF2/mirzabot?style=flat-square" alt="Issues"/> </a> <a href="https://github.com/mahdiMGF2/mirzabot/blob/main/LICENSE"> <img src="https://img.shields.io/github/license/mahdiMGF2/mirzabot?style=flat-square" alt="License"/> </a> <img src="https://img.shields.io/badge/PHP-8.2-777BB4?style=flat-square&logo=php&logoColor=white" alt="PHP 8.2"/> </p> </div> --- ## đ Table of Contents - [⨠Overview](#-overview) - [đ Documentation](#-documentation) - [đ§Š Supported Panels](#-supported-panels) - [đł Payment Gateways](#-payment-gateways) - [âď¸ Features](#ď¸-features) - [đ Installation](#-installation) - [Prerequisites](#prerequisites) - [Install](#install) - [Update](#update) - [Remove](#remove) - [Non-Interactive (CLI) Usage](#non-interactive-cli-usage) - [đ Free vs. Pro](#-free-vs-pro) - [đ Languages](#-languages) - [đľ Support the Project](#-support-the-project) - [đĽ Contributors](#-contributors) --- ## ⨠Overview **Mirza Bot** is a feature-rich Telegram bot for selling VPN subscriptions and automating the entire sales workflow â from purchase and payment to config creation and service management. It connects directly to your panels, builds configurations automatically, accepts a wide range of payment methods, and gives both customers and admins a clean experience through a **Telegram Mini App** and a **web admin panel**. > Whether you're handing out trial accounts or running a large-scale reseller business, Mirza Bot has the tools to run it end to end. --- ## đ Documentation The complete user manual lives at **[mirzabot.com/docs](https://mirzabot.com/docs/)** â 61 pages covering every part of the bot, written in **Persian (ŮاعسŰ)**. It is not a feature list: every menu is documented with the exact order of the steps the bot asks for, what each field accepts, the error message you get when it rejects your input, and the mistake that most often breaks that feature. | Section | What it covers | |---------|----------------| | **Ř´ŘąŮŘš** (Getting started) | Architecture, requirements, server install, shared-host install, CLI flags, updating and removing | | **سا؎تاع** (Structure) | Repository layout, database tables, which file does what | | **ŮžŮŮâŮا** (Panels) | Adding each of the 13 panel types, protocol & inbound setup, per-panel menus, manual config creation, node management | | **ŮŘąŮشگاŮ** (Shop) | Products, categories, trial accounts, On-Hold services, bulk purchase, manual sale, renewals and location changes | | **ٞعدا؎ت** (Payments) | Card-to-card with receipt approval, every online and crypto gateway, wallet and refunds | | **Ů ŘŻŰŘąŰŘŞ** (Administration) | Admin roles, feature switches, report channel and topics, texts, forced-join channel, web panel | | **عشد ٠بازاعŰابŰ** (Growth) | Referrals, cashback, discount and gift codes, lottery and wheel, reseller system | | **ŮÚŻŮداعŰ** (Operations) | Cron jobs, backup and restore, optimization, security checklist, troubleshooting | > The docs are generated from the bot's own source, so menu names, limits and error strings match the code rather than an older release. --- ## đ§Š Supported Panels Mirza Bot integrates with the most popular VPN and network management panels: | Panel | Panel | |-------|-------| | đ˘ **Marzban** | đ˘ **Marzneshin** | | đ˘ **Sanaei / Alireza** | | đ˘ **S-UI** | đ˘ **Hiddify** | | đ˘ **WGDashboard** (WireGuard) | đ˘ **MikroTik** | | đ˘ **IBSng** | đ˘ **Pasarguard** | > Configs are generated automatically and are compatible with all common protocols. --- ## đł Payment Gateways | Gateway | Type | |---------|------| | đľ **Card-to-Card** | Manual (receipt + admin approval) | | đŞ **NowPayments** | Crypto | | đŞ **Plisio** | Crypto | | đŞ **CubePay** | TRON / crypto | | đŽđˇ **Zarinpal** | Online gateway | | đŽđˇ **Aqayepardakht** | Online gateway | | đŽđˇ **IranPay** | Online gateway | --- ## âď¸ Features ### đ Sales & Configuration - â VPN purchase with **fully automated** config creation - â Trial / test accounts for new users - â Compatibility with all common protocols - â QR codes for fast config import - â Protocol-based configuration settings - â Product, panel & gateway management ### đ¤ User Experience - â **Telegram Mini App** for a modern, in-app interface - â View & manage purchased services: - Renew a service - Buy additional volume - Retrieve config / update subscription links - â Wallet & balance system - â Detailed purchase & trial reports - â Support section, FAQ & customizable tutorials - â Phone-number verification - â Mandatory channel membership for purchases ### đ Growth & Marketing - â Affiliate / referral system - â Cashback rewards - â Discount codes - â Gift codes - â Lottery system - â **Agent / reseller** system ### đ ď¸ Administration - â **Web admin panel** (login-protected dashboard) - â Multiple admins support - â Balance & user management - â Full text/message customization from the bot - â Configurable username-generation methods - â Automatic backups - â Notification & expiry-reminder services (cron) - â On-hold configurations --- ## đ Installation ### Prerequisites | Requirement | Details | |-------------|---------| | đĽď¸ **OS** | A **clean** Ubuntu **22.04** or **24.04** server | | đ **Domain** | A domain name pointed to your server's IP | | âď¸ **Stack** | PHP 8.2, Apache, MySQL, SSL â *installed automatically by the script* | > đĄ Start from a fresh server with no existing web server, database, or panel installed. ### Install Run the following command on your server as **root**: ```bash curl -o install.sh -L https://raw.githubusercontent.com/mahdiMGF2/mirzabot/main/install.sh && bash install.sh ``` An interactive menu will appear: ``` 1) Install Mirza 2) Update Mirza 3) Remove Mirza 4) Migrate: Free â Pro (Beta) 5) Renew SSL certificate 6) Help & Parameters 7) Exit ``` âĄď¸ Select **`1`** to install the bot, then follow the prompts. ### Update Run the same command and select **`2`**: ```bash curl -o install.sh -L https://raw.githubusercontent.com/mahdiMGF2/mirzabot/main/install.sh && bash install.sh ``` ### Remove Run the same command and select **`3`** to completely remove the bot and its services. ### Non-Interactive (CLI) Usage You can also drive the installer entirely from the command line â handy for automation and scripted deployments. **Commands** | Command | Description | |---------|-------------| | `install` | Install Mirza | | `update` | Update Mirza (choose channel / version) | | `remove` | Remove Mirza and its services | | `migrate` | Migrate Free â Pro | | `renew` | Renew the bot's SSL certificate | | `menu` | Open the interactive panel (default) | **Install parameters** | Parameter | Description | |-----------|-------------| | `--name` | Bot username | | `--token` | Telegram bot token | | `--admin` | Admin chat ID | | `--domain` | Domain name (e.g. `bot.example.com`) | | `--db-user` | Database username | | `--db-pass` | Database password | | `--version` | Specific release tag (e.g. `0.1.7`) | | `--channel` | `beta` ¡ `release` ¡ `auto` | | `-h`, `--help` | Show CLI help and exit | **Examples** ```bash # Auto-pick the best channel mirza install --channel auto # Fully non-interactive install mirza install --name myvpnbot --token 123:ABC \ --admin 111 --domain bot.example.com --version 0.1.7 # Update to a specific version or channel mirza update --version 0.1.6 mirza update --channel release # Remove mirza remove ``` --- ## đ Free vs. Pro | | Free đ | Pro đ | |---|:---:|:---:| | Automated VPN sales & config creation | â | â | | Trial accounts, wallet & service management | â | â | | All supported panels & payment gateways | â | â | | Advanced customization & analytics | â | â | | Enhanced management & extra modules | â | â | đ **Pro purchase guide:** [View on Telegram Âť](https://t.me/mirzaperimium/4) --- ## đ Languages Mirza Bot ships with full translations for: đŹđ§ English ¡ đŽđˇ Persian (ŮاعسŰ) ¡ đˇđş Russian (Đ ŃŃŃкиК) ¡ đ¨đł Chinese (ä¸ć) --- ## đľ Support the Project If **Mirza Bot** helps your business, please consider supporting its development with a crypto donation: <a href="https://nowpayments.io/donation/mahdi"> <img src="https://img.shields.io/badge/Donate-NowPayments-1A1A2E?style=for-the-badge&logo=bitcoin&logoColor=white" alt="Donate"/> </a> Your support keeps the updates and improvements coming. Thank you! đ --- ## đĽ Contributors Thanks to everyone who has contributed to making Mirza Bot better: <a href="https://github.com/mahdiMGF2/mirzabot/graphs/contributors"> <img src="https://contrib.rocks/image?repo=mahdiMGF2/mirzabot" alt="Contributors"/> </a> --- <div align="center"> **Made with â¤ď¸ by the Mirza Panel community** đ [Documentation](https://mirzabot.com/docs/) ¡ đŹ [Channel](https://t.me/mirzapanel) ¡ đĽ [Group](https://t.me/mirzapanelgroup) ¡ â [Star on GitHub](https://github.com/mahdiMGF2/mirzabot) </div>
Live Chat