mahdiyar30301/ZorenixAI_botPublic · Bot Template

Not Bot Is Hacking You 🤣🤩

Utilityutility
ProfileTelegram
455 commands2 envUpdated 7h agoCreated Aug 26, 2026
Back to folder

commands/topics.js

javascript · 48 lines

Raw
1/**#command2name: topics3answer: 4keyboard: 5parse_mode: markdown6aliases: 7allow_only_group: false8need_reply: false9is_web: 010#command**/11 12/**#command13name: topics14answer: 15keyboard: 16parse_mode: markdown17aliases: 18allow_only_group: false19need_reply: false20is_web: 021#command**/22 23// کامند: topics24try {25  if (await db.global.get("feat_topics_off")) {26    Bot.sendMessage("📚 سیستم موضوعات فعلاً خاموش است.");27    return;28  }29 30  var uid = String((user && (user.telegramid || user.id)) || "");31  var cur = (await db.global.get("topic_" + uid)) || (await db.global.get("cfg_default_topic")) || "general";32  var isStudy = (String(cur) === "study");33 34  Api.sendMessage({35    text:36      "📚 موضوع گفتگو\n\n" +37      "موضوع فعلی تو: " + (isStudy ? "📚 درسی و کنکور" : "🎯 عمومی") + "\n\n" +38      "با یک لمس عوضش کن 👇",39    reply_markup: {40      inline_keyboard: [41        [{ text: (isStudy ? "🎯 برگشت به حالت عمومی" : "📚 حالت درسی/کنکور"), callback_data: "topic_study" }],42        [{ text: "🚀 مرکز رشد", callback_data: "growth" }]43      ]44    }45  });46} catch (e) {47  Bot.sendMessage("⚠️ topics:\n" + String(e && e.message ? e.message : e));48}