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

javascript ยท 61 lines

Raw
1/**#command2name: /add_balance_amount3answer: ๐Ÿ’ฐ ๐˜ผ๐˜ฟ๐˜ฟ ๐˜ฝ๐˜ผ๐™‡๐˜ผ๐™‰๐˜พ๐™€4 5๐Ÿ’ต Kitna balance add 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  return Bot.sendMessage("โŒ Access Denied!");18}19 20let targetId = await db.bot.get("add_balance_target", 0);21let amount = Number(String(message).trim());22 23if (!targetId) {24  return Bot.sendMessage("โŒ User ID nahi mili.");25}26 27if (!Number.isFinite(amount) || amount <= 0) {28  return Bot.sendMessage("โŒ Valid amount bhejiye.");29}30 31let oldBalance = await db.user.get(32  "balance",33  0,34  { user_id: Number(targetId) }35);36 37oldBalance = Number(oldBalance) || 0;38 39let newBalance = oldBalance + amount;40 41await db.user.set(42  "balance",43  newBalance,44  { user_id: Number(targetId) }45);46 47Api.sendMessage({48  chat_id: Number(targetId),49  text: "๐Ÿ’ฐ Admin ne aapke balance me โ‚น" +50        amount.toFixed(2) +51        " add kiya hai ๐Ÿ˜"52});53 54await db.bot.del("add_balance_target");55 56Bot.sendMessage(57  "โœ… ๐˜ฝ๐˜ผ๐™‡๐˜ผ๐™‰๐˜พ๐™€ ๐˜ผ๐˜ฟ๐˜ฟ๐™€๐˜ฟ\n\n" +58  "๐Ÿ†” User ID: " + targetId + "\n" +59  "๐Ÿ’ฐ Amount: โ‚น" + amount.toFixed(2) + "\n" +60  "๐Ÿ’ณ New Balance: โ‚น" + newBalance.toFixed(2)61);