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/_remove_balance_amount.js

javascript ยท 72 lines

Raw
1/**#command2name: /remove_balance_amount3answer: ๐Ÿ’ฐ ๐™๐™€๐™ˆ๐™Š๐™‘๐™€ ๐˜ฝ๐˜ผ๐™‡๐˜ผ๐™‰๐˜พ๐™€4 5๐Ÿ’ต Kitna balance remove karna hai?6keyboard: 7parse_mode: markdown8aliases: 9allow_only_group: false10need_reply: true11is_web: 012#command**/13 14const ADMIN_ID = 8888300020;15 16if (user.id != ADMIN_ID) {17  Bot.sendMessage("โŒ Access Denied!");18  return;19}20 21let targetId = await db.bot.get("remove_balance_target", 0);22let amount = Number(String(message).trim());23 24if (!targetId) {25  return Bot.sendMessage("โŒ User ID nahi mili.");26}27 28if (!Number.isFinite(amount) || amount <= 0) {29  return Bot.sendMessage("โŒ Valid amount bhejiye.");30}31 32let oldBalance = await db.user.get(33  "balance",34  0,35  { user_id: Number(targetId) }36);37 38oldBalance = Number(oldBalance) || 0;39 40if (amount > oldBalance) {41  return Bot.sendMessage(42    "โŒ User ke balance mein itna amount nahi hai.\n\n" +43    "๐Ÿ’ฐ Current Balance: โ‚น" + oldBalance.toFixed(2)44  );45}46 47let newBalance = oldBalance - amount;48 49await db.user.set(50  "balance",51  newBalance,52  { user_id: Number(targetId) }53);54 55Api.sendMessage({56  chat_id: Number(targetId),57  text:58    "๐Ÿ’ธ Admin ne aapke balance se โ‚น" +59    amount.toFixed(2) +60    " remove kiya hai.\n\n" +61    "๐Ÿ’ฐ Remaining Balance: โ‚น" +62    newBalance.toFixed(2)63});64 65await db.bot.del("remove_balance_target");66 67Bot.sendMessage(68  "โœ… ๐˜ฝ๐˜ผ๐™‡๐˜ผ๐™‰๐˜พ๐™€ ๐™๐™€๐™ˆ๐™Š๐™‘๐™€๐˜ฟ\n\n" +69  "๐Ÿ†” User ID: " + targetId + "\n" +70  "๐Ÿ’ฐ Removed: โ‚น" + amount.toFixed(2) + "\n" +71  "๐Ÿ’ณ Remaining: โ‚น" + newBalance.toFixed(2)72);