🤖 Telegram Bot Setup - FIXED VERSION ✅

✅ What's Fixed:
🎉 New Features:

Current URL:

https://cozino.site/Somu/bot.php

Actions:

✅ Set Webhook ❌ Remove Webhook â„šī¸ Webhook Info

📋 Setup Instructions:

  1. Upload this file to your web server (PHP 7.4+ required)
  2. Make sure the server has write permissions for:
    • users_db.json
    • payments.json (NEW)
    • pending_payments.json (NEW)
    • bot.log
  3. Click "✅ Set Webhook" to configure Telegram
  4. Start your bot by sending /start to it on Telegram

🔧 Required Permissions:

👨‍đŸ’ŧ 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.