Skip to content

iitzSeriZdev/iRolixBot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

26 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

πŸš€ iRolixBot

iRolix Logo

| Version License PHP ⚑ Advanced Telegram VPN Sales Bot with Admin Panel

The Ultimate Solution for VPN Service Providers

Transform your VPN business with a powerful, feature-rich Telegram bot that automates sales, manages users, and streamlines your operations.

English β€’ فارسی β€’ δΈ­ζ–‡ β€’ Русский

🌟 Star β€’ πŸ› Report Bug β€’ πŸ’‘ Request Feature β€’ πŸ“– Documentation


πŸ“‹ Table of Contents


✨ Features

πŸ€– Bot Features

  • πŸ“± Subscription Management

    • Purchase subscriptions (type, volume, duration)
    • Service renewal and extension
    • Extra volume and days purchase
    • Test service (one-time)
    • Service information and details
  • πŸ‘₯ User Management

    • User account information
    • Transaction history
    • Referral statistics
    • Balance management
  • πŸ’³ Payment System

    • Multiple payment gateways (Zarinpal, Card-to-Card, and more)
    • Automatic payment processing
    • Invoice management
    • Payment verification
  • 🎁 Referral Program

    • Unique referral links
    • Customizable commission (percentage/fixed)
    • Automatic payout
    • Referral statistics
  • 🎫 Support System

    • Ticket-based support
    • Admin notifications
    • Message forwarding

πŸ‘¨β€πŸ’Ό Admin Features

  • πŸ“Š In-Bot Admin Panel

    • User management
    • Service management
    • Product management
    • Panel management
    • Logs and statistics
    • Settings configuration
  • 🌐 Web Admin Panel

    • Complete dashboard with statistics
    • User management interface
    • Service management
    • Product management
    • VPN panel management
    • Invoice management
    • Referral system management
    • Security monitoring
    • Comprehensive logging
    • Multi-language support (English, Persian, Chinese, Russian)

πŸ”’ Security Features

  • πŸ›‘οΈ Anti-Spam System

    • Configurable click rate limits
    • Automatic mute functionality
    • Time-based restrictions
  • 🚨 Anti-Fraud System

    • Admin activity monitoring
    • Automatic access revocation
    • Suspicious activity detection
  • πŸ“Š Security Monitoring

    • IP tracking
    • Browser and OS detection
    • Country detection
    • Activity logging
  • πŸ” Additional Security

    • Telegram IP verification
    • SQL injection prevention
    • XSS protection
    • CSRF protection
    • Rate limiting
    • Secure session management

🎯 Key Highlights

  • βœ… Multi-Language Support - Full support for English, Persian, Chinese, and Russian
  • βœ… Dual Bot Architecture - PHP bot for shared hosting, Python bot for VPS
  • βœ… Multiple VPN Panels - Support for 12+ VPN panel types
  • βœ… Payment Gateways - Integration with Iranian and international payment gateways
  • βœ… Automated Installation - One-click installation for both hosting types
  • βœ… Professional Admin Panel - Web-based admin panel with modern UI
  • βœ… Advanced Security - Anti-spam, anti-fraud, and comprehensive monitoring
  • βœ… Referral System - Complete referral and affiliate program
  • βœ… QR Code Generation - Custom QR codes with background images

πŸ“¦ Requirements

Server Requirements

For PHP Bot (Shared Hosting):

  • PHP >= 8.1
  • MySQL/MariaDB >= 5.7
  • Apache/Nginx with mod_rewrite
  • cURL extension
  • PDO MySQL extension
  • mbstring extension
  • GD extension (for QR codes)
  • BCMath extension
  • Write permissions for logs and uploads

For Python Bot (VPS):

  • Python 3.9+
  • MySQL/MariaDB >= 5.7
  • Nginx (recommended)
  • Systemd (for service management)

PHP Extensions

  • pdo_mysql - Database connection
  • curl - HTTP requests
  • json - JSON processing
  • mbstring - Multibyte string handling
  • gd - Image processing (QR codes)
  • bcmath - Mathematical operations

PHP Libraries (Composer)

  • endroid/qr-code ^4.0 - QR code generation
  • guzzlehttp/guzzle ^7.0 - HTTP client

πŸš€ Quick Start

πŸ“¦ Automated Installation (Recommended)

For Shared Hosting

  1. Upload all project files to your hosting
  2. Navigate to: https://yourdomain.com/installer/host/install.php
  3. Follow the installation wizard:
    • Step 1: Check requirements
    • Step 2: Configure database
    • Step 3: Configure bot
    • Step 4: Automatic installation
    • Step 5: Complete!

For VPS (Ubuntu/Debian)

# Install with one command
sudo bash <(curl -sSL https://raw.githubusercontent.com/iitzSeriZdev/iRolixBot/main/installer/vps/install.sh) install

# Uninstall with backup
sudo bash <(curl -sSL https://raw.githubusercontent.com/iitzSeriZdev/iRolixBot/main/installer/vps/install.sh) uninstall-with-backup

# Update directly
sudo bash <(curl -sSL https://raw.githubusercontent.com/iitzSeriZdev/iRolixBot/main/installer/vps/install.sh) update

After installation:

  1. Database credentials are saved to /tmp/irolix_db_config
  2. Edit /opt/iRolixBot/bot-php/config.php to add your bot token
  3. Access the panel at http://YOUR_SERVER_IP/web-panel
  4. Complete the setup through the web interface

πŸ“¦ Manual Installation

If you prefer manual installation:

Step 1: Clone the Repository

git clone https://github.com/iitzSeriZdev/iRolixBot.git
cd iRolixBot

Step 2: Install Dependencies

cd bot-php
composer install

Step 3: Setup Database

Create a MySQL/MariaDB database and note the credentials.

Step 4: Create Telegram Bot

  1. Message @BotFather on Telegram
  2. Use /newbot to create your bot
  3. Save the bot token securely

Step 5: Run Installation

  1. Upload files to your web server
  2. Visit installer/host/install.php in your browser
  3. Follow the intuitive installation wizard:
    • Choose your language
    • Enter database details
    • Configure bot token
    • Set up admin account
    • Complete installation

Step 6: Setup Cron Jobs

Configure just one cron job:

* * * * * /usr/bin/php /path/to/iRolixBot/bot-php/cron/cron.php >> /path/to/iRolixBot/Logs/cron_output.log 2>&1

Or use HTTP:

* * * * * curl -s https://yourdomain.com/bot-php/cron/cron.php > /dev/null 2>&1

That's it! The centralized manager handles everything automatically. πŸŽ‰


βš™οΈ Configuration

After installation, customize your bot:

  1. πŸ”Œ VPN Panels - Connect your panels
  2. πŸ’³ Payment Gateways - Setup payment methods
  3. βš™οΈ Bot Settings - Customize behavior
  4. πŸ‘₯ Users - Manage customers
  5. πŸ›οΈ Products - Create offerings
  6. πŸ“ Categories - Organize products

⏰ Cron Jobs

What Gets Executed Automatically?

  • Every minute ⚑ - Payments, notifications, messages
  • Every 2 minutes 🎁 - Gift system, config testing
  • Every 3 minutes πŸ’° - Payment gateway checks
  • Every 5 minutes πŸ“Š - Payment expiration, reports
  • Every 15 minutes πŸ” - Status checks, monitoring
  • Every 30 minutes ⏳ - Agent expiration
  • Every hour 🎲 - Lottery system
  • Every 5 hours πŸ’Ύ - Automatic backups

🌐 VPN Panel Support

OpexCore Library Panels:

  • βœ… Marzban - Modern V2Ray/Xray panel
  • βœ… Marzneshin - Advanced VPN panel
  • βœ… ovPanel - OpenVPN panel
  • βœ… Pasarguard - Secure VPN panel
  • βœ… Remnawave - Wave VPN panel
  • βœ… Guard Panel - Security-focused panel

PHP-Based Panels:

  • βœ… Ali Reza - Popular Iranian panel
  • βœ… Ali Reza Single Port - Single port variant
  • βœ… 3x-ui - Xray UI panel
  • βœ… x-ui Single Port - Single port Xray UI
  • βœ… S-ui - Simple UI panel
  • βœ… Mikrotik - RouterOS integration
  • βœ… WGDashboard - WireGuard dashboard
  • βœ… Hiddify - Hiddify panel
  • βœ… Sanaei - Sanaei panel

πŸ’³ Payment Gateways

Iranian Gateways:

  • βœ… Zarinpal - Most popular Iranian gateway
  • βœ… Nowpayment - Modern payment gateway
  • βœ… IranPay1 - Iranian payment gateway
  • βœ… Aqayepardakht - Payment gateway
  • βœ… Card-to-Card - Direct card transfer

International Gateways:

  • βœ… Yoomoney - Russian payment system
  • βœ… Yookassa - Yandex payment gateway
  • βœ… Freekassa - International gateway
  • βœ… Heleket - Payment gateway
  • βœ… Robokassa - Russian payment gateway
  • βœ… Telegram Stars - Telegram's payment system
  • βœ… Cryptomus - Cryptocurrency gateway
  • βœ… CryptoPay - Crypto payment gateway

πŸ”’ Security

Security Features

  • βœ… Telegram IP verification
  • βœ… SQL injection prevention (Prepared Statements)
  • βœ… XSS protection
  • βœ… CSRF protection
  • βœ… Rate limiting
  • βœ… Secure session management
  • βœ… Anti-spam system
  • βœ… Anti-fraud system
  • βœ… Security monitoring

Security Best Practices

  1. After Installation:

    • Delete the installer directory
    • Change default passwords
    • Set up SSL/TLS certificate
  2. Regular Maintenance:

    • Update dependencies regularly
    • Review logs regularly
    • Backup database regularly
  3. Server Security:

    • Use strong passwords
    • Enable firewall
    • Keep system updated

For detailed security information, see SECURITY.md


πŸ“š Documentation


πŸ’¬ Support & Community

Get Help

Follow the Developer


πŸ’° Support Development

🌟 Help Us Build the Future! 🌟

Your support makes all the difference in the world!

We're committed to making iRolixBot the best Telegram bot solution available. Your donations directly fuel faster development, exclusive features, and continuous improvements.

πŸš€ Why Your Donation Matters

Your generous donations enable us to:

  • ⚑ Accelerate Development - More donations = faster feature releases and updates
  • 🎯 Build Exclusive Features - Get access to cutting-edge capabilities
  • πŸ› οΈ Enhanced Support - Priority support for our generous donors
  • 🌟 Continuous Innovation - Keep the project alive, thriving, and constantly evolving
  • πŸ”’ Better Security - Invest in security audits and improvements
  • πŸ“š Comprehensive Documentation - Create better guides and tutorials

πŸ’Ž The More You Give, The More You Get!

Every donation brings us closer to our goals!

  • Higher donations = Priority access to new features
  • Faster updates = More frequent releases with bug fixes and improvements
  • Exclusive features = Unique capabilities that set iRolixBot apart
  • Better support = Faster response times and dedicated assistance

πŸ’³ How to Donate

Choose your preferred payment method:

πŸ’° Cryptocurrency (Direct Transfer)

Currency Network Address
πŸ’΅ USDT BEP20 (Binance Smart Chain) 0xCaF05b21A518E6750AA43aD87cEB4a725e78a850
πŸ’Ž TON The Open Network UQAg7NaXzzFMvGxqirO9UYwwzseq8pAi3N8fompkKjOFtIzl
πŸ’° TRX Tron Network TPatJCKdLJs1ZpetLtpC97nsHg8X9G1KRs

⚠️ Important: Make sure you're using the correct network when sending cryptocurrency!

πŸ’Έ Online Payment (Recommended)

🌐 Donate via NowPayments

NowPayments accepts:

  • πŸ’³ Credit/Debit Cards
  • πŸ’° 100+ Cryptocurrencies
  • 🌍 Multiple payment methods
  • πŸ”’ Secure & Fast Processing

Every donation, no matter the size, helps us improve iRolixBot and bring you better features! πŸ™


πŸ“„ License

This project is licensed under the MIT License - see the LICENSE file for details.

You're free to use, modify, and distribute this project! πŸŽ‰


Made with πŸ’œ by iitzSeriZ

Star this repo if you find it helpful! ⭐

⭐ Star β€’ πŸ› Report Bug β€’ πŸ’‘ Request Feature β€’ πŸ’Έ Donate

#woman_life_freedom

About

iRolix - Vpn Sale & Managment.... Telegram Bot ( Free and Full Option )

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published