vaibhav12222vk/taskXmoneybotPublic ยท Bot Template

ProfileTelegram

AI๐Ÿ’Žโšก ๐™ˆ๐™ค๐™ฃ๐™š๐™ฎ๐™๐™–๐™จ๐™  โšก๐Ÿ’Ž appears to be a Telegram automation bot. Commands include /start, /admin, /adminback, /profile, /helpandsupport, /broadcast, /finduser, /contactuser. Observed in code: messaging, storage, keyboards, web.

Utilityutility
51 commands0 envUpdated 6d agoCreated Sep 16, 2026
Back to folder

commands/_withdraw_amount.js

javascript ยท 73 lines

Raw
1/**#command2name: /withdraw_amount3answer: 4keyboard: 5parse_mode: markdown6aliases: 7allow_only_group: false8need_reply: true9is_web: 010#command**/11 12let amountText = String(message || "").trim();13 14if (!/^\d+(\.\d+)?$/.test(amountText)) {15  return Bot.sendMessage(16    "โŒ Sirf valid amount bhejiye.\n\n" +17    "Example: 30"18  );19}20 21let amount = Number(amountText);22 23if (!Number.isFinite(amount) || amount < 30) {24  return Bot.sendMessage(25    "โŒ Minimum withdrawal โ‚น30 hai.\n\n" +26    "๐Ÿ’ฐ Kam se kam โ‚น30 withdraw karein."27  );28}29 30let balance = Number(31  await db.user.get("balance", 0)32) || 0;33 34if (amount > balance) {35  return Bot.sendMessage(36    "โŒ Insufficient Balance!\n\n" +37    "๐Ÿ’ฐ Available Balance: โ‚น" +38    balance.toFixed(2)39  );40}41 42let upi = await db.user.get("withdraw_upi", "");43 44if (!upi) {45  return Bot.sendMessage(46    "โŒ UPI ID nahi mili.\n\n" +47    "Pehle UPI ID submit karein."48  );49}50 51await db.user.set("withdraw_amount", amount);52 53Bot.sendMessage(54  "๐Ÿ’ธ ๐™’๐™„๐™๐™ƒ๐˜ฟ๐™๐˜ผ๐™’ ๐˜พ๐™Š๐™‰๐™๐™„๐™๐™ˆ๐˜ผ๐™๐™„๐™Š๐™‰\n\n" +55  "๐Ÿ’ฐ Amount: โ‚น" + amount.toFixed(2) +56  "\n๐Ÿ“ฑ UPI: " + upi +57  "\n\n" +58  "Kya aap withdrawal request submit karna chahte hain?",59  {60    reply_markup: {61      inline_keyboard: [[62        {63          text: "โœ… Confirm",64          callback_data: "withdraw_confirm"65        },66        {67          text: "โŒ Cancel",68          callback_data: "withdraw_cancel"69        }70      ]]71    }72  }73);