This project is designed to facilitate the sale of VPN services using the Hiddify panel. It integrates with a Telegram bot to provide users with an interactive way to view, select, and purchase VPN plans. The bot supports various plans, including unlimited and limited data options, with different pricing tiers.
-
Interactive Telegram Bot: Users can interact with the bot to view available VPN plans, select their desired plan, and proceed with payment.
-
Plan Options:
-
Normal Plans: Various data plans with limited and unlimited options.
-
VIP Plans: Premium plans with additional benefits.
-
-
Payment Integration: Users can select payment options directly from the bot.
-
Proforma Invoice Generation: Automatically generates a proforma invoice with plan details and pricing.
-
PHP 7.4 or higher
-
MySQL or compatible database
-
Telegram Bot API Token
-
Hiddify Panel setup
-
Database Configuration: Update the database connection settings in
serv_conf.php
. -
Telegram Bot Setup:
-
Create a Telegram bot using BotFather.
-
Obtain the bot API token and configure it in your script.
-
-
Hiddify Panel Setup: Ensure Hiddify is properly set up and configured to handle VPN provisioning and management.
- Clone the repository or download the project files.
git clone https://your-repository-url.git
-
Configure the database connection by editing
serv_conf.php
with your database details. -
Set up your Telegram bot by replacing placeholders in the script with your bot API token.
-
Deploy the script on your web server or local environment.
-
Start the bot using a PHP server or deploy it on a web server with PHP support.
-
Interact with the bot via Telegram:
-
Use
/start
to view the main menu. -
Navigate through options to view available VPN plans.
-
Select a plan to view details and proceed with payment.
-
-
Normal Plans: Choose from various data limits with prices ranging from 50,000 to 130,000 Tomans.
-
VIP Plans: Premium options with prices from 90,000 to 170,000 Tomans.
- Users can select "Card to Card" payment and follow instructions provided by the bot.
After selecting a plan and proceeding with payment, a proforma invoice will be generated with the following details:
-
Plan Name
-
Price
-
Description
-
Database Issues: Check your database connection settings and ensure the temp table exists.
-
Bot Errors: Ensure your bot token is correctly configured and that the bot is running.
Feel free to contribute to this project by submitting pull requests or reporting issues. Ensure that all contributions are well-documented and tested.
This project is licensed under the MIT License. See the LICENSE file for more details.