đ¤ Telegram Bot Setup - FIXED VERSION â
â
What's Fixed:
- â
Payment state persistence (data saved between requests)
- â
Duplicate UTR checking
- â
Payment history tracking
- â
Pending payments management
- â
Reject payment functionality
- â
Better error handling
đ New Features:
- đ Payment History for users
- đŗ Pending payments list for admins
- â Reject payment with reason
- đ UTR duplicate detection
- đ Enhanced admin stats
- â° Payment age tracking
Current URL:
https://cozino.site/Somu/bot.php
Actions:
â
Set Webhook
â Remove Webhook
âšī¸ Webhook Info
đ Setup Instructions:
- Upload this file to your web server (PHP 7.4+ required)
- Make sure the server has write permissions for:
- users_db.json
- payments.json (NEW)
- pending_payments.json (NEW)
- bot.log
- Click "â
Set Webhook" to configure Telegram
- Start your bot by sending /start to it on Telegram
đ§ Required Permissions:
- Write permission for JSON files
- Write permission for log file
- SSL certificate (HTTPS required for webhook)
đ¨âđŧ Admin Commands:
/start - Start bot
/stats - View statistics
/pending - View pending payments
/approve user_id posts - Approve payment
/reject payment_id [reason] - Reject payment
/list - Top 20 users
/listall - All users
/export - Export users to file
/addposts user_id posts - Add posts
/removeposts user_id posts - Remove posts
/remove user_id - Remove user
/broadcast message - Send announcement
â ī¸ Important: This bot uses webhook mode. The payment bug has been fixed by implementing persistent storage for payment sessions.