🤖 Forward Bot v2.0

Advanced Telegram Forward Bot with Payment System

✅ Enhanced Features

  • ✓ OOP Architecture - Better code organization
  • ✓ Rate Limiting - Prevents spam & abuse
  • ✓ Advanced Logging - Debug & monitor easily
  • ✓ Better Security - Input validation & sanitization
  • ✓ Improved Error Handling - Graceful failures
  • ✓ Caching System - Faster performance
  • ✓ Transaction Safety - Atomic file operations
  • ✓ Daily Free Credits - User retention

📋 Quick Setup

  1. Upload bot.php to your server
  2. Create /data and /logs folders (auto-created)
  3. Click "Set Webhook" button below
  4. Setup cron job for daily credits
  5. Send /start to your bot

⏰ Cron Job Setup

Schedule daily free credit broadcast at 9 AM every day:

https://cozino.site/view/bot.php?action=cron&secret=3dfd9f011caaa9c457a971c66539605b
cPanel Cron Command:
0 9 * * * curl "https://cozino.site/view/bot.php?action=cron&secret=3dfd9f011caaa9c457a971c66539605b"

đŸŽ¯ Pricing Packages

Package Posts Price Per Post
🔰 Starter 100 ₹20 ₹0.2
⭐ Basic 500 ₹50 ₹0.1
💎 Pro 1000 ₹80 ₹0.08
👑 Premium 5000 ₹300 ₹0.06

👨‍đŸ’ŧ Admin Commands

/start - Start the bot
/stats - View statistics
/pending - View pending payments
/approve user_id posts - Approve payment
/reject payment_id reason - Reject payment
/senddaily - Send daily credit message
/list - View top users
/broadcast message - Broadcast to all users
/cancel - Cancel active payment session

🔧 Configuration

Edit these constants in the Config class:

  • BOT_TOKEN - Your bot token
  • TARGET_GROUP_ID - Group to forward messages
  • ADMIN_ID - Admin user IDs (array)
  • UPI_ID - Payment UPI ID
  • PAYMENT_QR - QR code image URL
  • MAX_REQUESTS_PER_MINUTE - Rate limit (default: 20)
  • DAILY_FREE_POSTS - Free posts per day (default: 1)

🔒 Security

  • Rate limiting
  • Input validation
  • CSRF protection
  • Duplicate UTR check
  • Secure file operations

💾 Data Management

  • JSON database
  • Transaction safety
  • Auto backup
  • Caching system
  • Error recovery

📊 Analytics

  • User statistics
  • Payment tracking
  • Activity logs
  • Error monitoring
  • Usage reports
âš ī¸ Important Notes:
  • Ensure /data and /logs folders are writable (755 permissions)
  • Keep your bot token secure and never share it
  • Setup SSL certificate for webhook (HTTPS required)
  • Test cron job before going live
  • Regular backups recommended
📚 Support & Documentation:

For issues or questions, check the inline comments in the code. All major functions are documented with descriptions.