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

javascript ยท 117 lines

Raw
1/**#command2name: /submission3answer: 4keyboard: 5parse_mode: markdown6aliases: 7allow_only_group: false8need_reply: false9is_web: 010#command**/11 12const OWNER_ID = 8888300020;13 14// ๐Ÿ” Admin Access15let admins = await db.bot.get("admins", []);16 17if (!Array.isArray(admins)) {18  admins = [];19}20 21let isAdmin =22  user.id == OWNER_ID ||23  admins.some(function(id) {24    return Number(id) == Number(user.id);25  });26 27if (!isAdmin) {28  return Bot.sendMessage("โŒ Access Denied!");29}30 31// ๐Ÿ“ค Get Submissions32let submissions = await db.bot.get("submissions", []);33 34if (!Array.isArray(submissions)) {35  submissions = [];36}37 38let pending = submissions.filter(function(s) {39  return s.status === "pending";40});41 42if (pending.length === 0) {43  return Bot.sendMessage(44    "๐Ÿ“ค ๐™Ž๐™๐˜ฝ๐™ˆ๐™„๐™Ž๐™Ž๐™„๐™Š๐™‰๐™Ž\n\n" +45    "โœ… Koi pending submission nahi hai."46  );47}48 49// ๐Ÿ“‹ Show Pending Submissions50for (let s of pending) {51 52  if (s.type === "custom_task") {53 54    await Api.sendMessage({55      chat_id: user.id,56 57      text:58        "๐ŸŽฏ ๐˜พ๐™๐™Ž๐™๐™Š๐™ˆ ๐™๐˜ผ๐™Ž๐™† ๐™Ž๐™๐˜ฝ๐™ˆ๐™„๐™Ž๐™Ž๐™„๐™Š๐™‰\n\n" +59        "๐Ÿ†” Request ID: " + s.id +60        "\n๐Ÿ†” Task ID: " + s.task_id +61        "\n๐Ÿ“ Task: " + s.task_title +62        "\n๐Ÿ‘ค User ID: " + s.user_id +63        "\n๐Ÿ‘ค Username: " + s.username +64        "\n\n๐Ÿ“ค Proof:\n" + s.proof +65        "\n\n๐Ÿ’ฐ Reward: โ‚น" +66        Number(s.reward || 0).toFixed(2) +67        "\n\nโณ Status: Pending",68 69      reply_markup: {70        inline_keyboard: [[71          {72            text: "โœ… Approve",73            callback_data: "task_approve " + s.id74          },75          {76            text: "โŒ Reject",77            callback_data: "task_reject " + s.id78          }79        ]]80      }81    });82 83  } else {84 85    await Api.sendMessage({86      chat_id: user.id,87 88      text:89        "๐Ÿ“ง ๐™‚๐™ˆ๐˜ผ๐™„๐™‡ ๐™Ž๐™๐˜ฝ๐™ˆ๐™„๐™Ž๐™Ž๐™„๐™Š๐™‰\n\n" +90        "๐Ÿ†” Request ID: " + s.id +91        "\n๐Ÿ‘ค User ID: " + s.user_id +92        "\n๐Ÿ‘ค Username: " + s.username +93        "\n๐Ÿ“ฉ Gmail: " + s.gmail +94        "\n๐Ÿ” Test Code: " + s.test_code +95        "\n๐ŸŽ Reward: โ‚น10.00" +96        "\n\nโณ Status: Pending",97 98      reply_markup: {99        inline_keyboard: [[100          {101            text: "โœ… Approve",102            callback_data: "gm_approve " + s.id103          },104          {105            text: "โŒ Reject",106            callback_data: "gm_reject " + s.id107          }108        ]]109      }110    });111  }112}113 114Bot.sendMessage(115  "๐Ÿ“ค " + pending.length +116  " pending submission(s) shown above."117);