
// ===== PAYMENT MANUAL APPROVAL =====
function notifyPaymentStarted(payment, user) {
  if (!bot.isActive || !ADMIN_CHAT_ID) return;
  const isApi = payment.username && payment.username.includes('"purpose":"api"');
  const typeStr = isApi ? (payment.username.includes('"type":"buy_new"') ? "Buy New API Key" : "Top Up API Key") : "Account Balance Top Up";
  
  const text = "⌛ *New Payment Initiated!*\n\n👤 User: \${user.username}\\n💵 Amount: {parseFloat(payment.amount).toFixed(2)}\n🏷️ Type: \n🆔 MD5: \${payment.id}\\n\n_If auto-check fails, you can approve manually below:_";
  
  const options = {
    parse_mode: "Markdown",
    reply_markup: JSON.stringify({
      inline_keyboard: [
        [{ text: "✅ Approve Payment", callback_data: "approve_" + payment.id }]
      ]
    })
  };
  
  bot.sendMessage(ADMIN_CHAT_ID, text, options).catch(() => {});
}

// Add to exports at the end of file (we will do this via replace)
