â 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
- Upload
bot.phpto your server - Create
/dataand/logsfolders (auto-created) - Click "Set Webhook" button below
- Setup cron job for daily credits
- 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
/dataand/logsfolders 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.