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

javascript ยท 56 lines

Raw
1/**#command2name: user_task_submit3answer: 4keyboard: 5parse_mode: markdown6aliases: 7allow_only_group: false8need_reply: false9is_web: 010#command**/11 12let taskId = String(params || "").trim();13 14if (!taskId) {15  return Bot.sendMessage("โŒ Invalid Request!");16}17 18let tasks = await db.bot.get("tasks", []);19 20if (!Array.isArray(tasks)) {21  tasks = [];22}23 24let task = tasks.find(function(t) {25  return String(t.id) === taskId &&26         t.status === "active";27});28 29if (!task) {30  return Bot.sendMessage("โŒ Task nahi mila ya task inactive hai.");31}32 33await db.user.set("current_task_id", taskId);34 35// Button hata do36await Api.editMessageReplyMarkup({37  chat_id: update.callback_query.message.chat.id,38  message_id: update.callback_query.message.message_id,39  reply_markup: {40    inline_keyboard: []41  }42});43 44await Api.answerCallbackQuery({45  callback_query_id: update.callback_query.id,46  text: "โœ… Task selected!"47});48 49Bot.sendMessage(50  "๐Ÿ“ค ๐™Ž๐™๐˜ฝ๐™ˆ๐™„๐™ ๐™๐˜ผ๐™Ž๐™†\n\n" +51  "๐ŸŽฏ Task: " + task.title +52  "\n๐Ÿ’ฐ Reward: โ‚น" +53  Number(task.reward || 0).toFixed(2) +54  "\n\n" +55  "๐Ÿ“ Task complete karne ka proof bhejiye."56);