deletedaccount/Filosofi_1botPublic · Bot Template

Make more optional and custom bot contact @Mr_WASI_Developer

Scamscamgmail_farmingpaid_tasksearningsreferral_bonusdaily_bonus
ProfileTelegram
33 commands0 envUpdated 5h agoCreated Aug 1, 2026
Back to folder

commands/_process_withdraw_address.js

javascript · 65 lines

Raw
1/**#command2name: /process_withdraw_address3answer: 4keyboard: 5parse_mode: markdown6aliases: 7allow_only_group: false8need_reply: false9is_web: 010#command**/11 12var adminId = 7460818622;13var uId = user.telegramid;14var walletAddress = message;15var selectedMethod = User.getProperty("selected_payout_method", "bKash");16 17// মেইন ব্যালেন্স হিসাব18var personalBal = User.getProperty("balance", 0);19personalBal = (personalBal && !isNaN(personalBal)) ? parseFloat(personalBal) : 0;20 21var refBonusBal = Bot.getProperty("user_balance_" + uId, 0);22refBonusBal = (refBonusBal && !isNaN(refBonusBal)) ? parseFloat(refBonusBal) : 0;23 24var totalBalance = personalBal + refBonusBal;25 26if (totalBalance <= 0) {27  Api.sendMessage({28    chat_id: chat.chatid,29    text: "❌ <b>আপনার উইথড্র করার মতো কোনো পর্যাপ্ত ব্যালেন্স নেই!</b>",30    parse_mode: "HTML"31  });32  return;33}34 35// ব্যালেন্স জিরো (0) করে দেওয়া (অটো উইথড্র কাট)36User.setProperty("balance", 0);37Bot.setProperty("user_balance_" + uId, 0);38 39// ইউজারকে কনফার্মেশন পাঠানো40Api.sendMessage({41  chat_id: chat.chatid,42  text: "✅ <b>Withdrawal Request Submitted!</b>\n\n" +43        "💰 <b>Amount:</b> " + totalBalance.toFixed(2) + " BDT\n" +44        "💳 <b>Method:</b> " + selectedMethod + "\n" +45        "📍 <b>Account/Wallet:</b> <code>" + walletAddress + "</code>\n\n" +46        "⏳ <i>পেমেন্ট প্রসেস হতে কিছু সময় লাগতে পারে।</i>",47  parse_mode: "HTML"48});49 50// অ্যাডমিনকে নোটিফিকেশন পাঠানো51var adminNotice = 52  "🚨 <b>NEW WITHDRAWAL REQUEST!</b>\n" +53  "━━━━━━━━━━━━━━━━━━━\n" +54  "👤 <b>User Name:</b> " + (user.first_name ? user.first_name : "User") + "\n" +55  "🆔 <b>User ID:</b> <code>" + uId + "</code>\n" +56  "💵 <b>Amount:</b> " + totalBalance.toFixed(2) + " BDT\n" +57  "💳 <b>Method:</b> " + selectedMethod + "\n" +58  "📍 <b>Wallet/Number:</b> <code>" + walletAddress + "</code>\n" +59  "━━━━━━━━━━━━━━━━━━━";60 61Api.sendMessage({62  chat_id: adminId,63  text: adminNotice,64  parse_mode: "HTML"65});