aziziyanmahdiyar/ZorenixUploaderAI_UploaderbotPublic · Bot Template
AIZorenixUploader AI appears to be a Telegram automation bot. Commands include /start, /@, /!, /@@, /*, /files, /dl, /verify. Observed in code: messaging, storage, libs, keyboards, web.
Utilityutility
42 commands0 envUpdated 1mo agoCreated Sep 22, 2026
commands/sreply.js
javascript · 47 lines
1/**#command2name: sreply3answer: 4keyboard: 5parse_mode: markdown6aliases: 7allow_only_group: false8need_reply: false9is_web: 010#command**/11 12// ═══════════ sreply — پاسخ ادمین به تیکت ═══════════13let OWNER = 586143968214let cfg = await db.bot.get("cfg", {})15let admins = cfg.admins || []16if (!user || (user.id !== OWNER && admins.indexOf(user.id) === -1)) {17 return Bot.sendMessage("⛔️ فقط مدیران.")18}19 20if (update_type === "callback_query" && update && update.callback_query) {21 await Api.answerCallbackQuery({ callback_query_id: update.callback_query.id })22}23 24let tid = parseInt(String(params || "").trim().split(" ")[0], 10)25if (isNaN(tid)) { return Bot.sendMessage("❌ شماره تیکت مشخص نیست.") }26 27let tk = await db.bot.get("tkt:" + tid, null)28if (!tk) { return Bot.sendMessage("❌ تیکت <code>" + tid + "</code> پیدا نشد.", { parse_mode: "HTML" }) }29 30let head = "💬 <b>پاسخ به تیکت #" + tid + "</b>\n\n"31head = head + "👤 " + Libs.tgutil.escapeText(tk.name || "—", "html") + (tk.un ? " (@" + tk.un + ")" : "") + "\n"32head = head + "🆔 <code>" + tk.uid + "</code>\n🕐 " + Libs.tgutil.escapeText(String(tk.at || "—"), "html") + "\n\n"33let stTx = (tk.status === "open" ? "🆕 باز" : (tk.status === "answered" ? "✅ جواب داده شده" : "🔒 بسته"))34head = head + "📄 وضعیت: " + stTx + "\n\n"35let mxs = Array.isArray(tk.msgs) ? tk.msgs.slice(-3) : []36let conv = ""37for (let m of mxs) { conv = conv + (m.r === "u" ? "👤 " : "🛠 ") + Libs.tgutil.escapeText(String(m.t || "").slice(0, 400), "html") + "\n" }38if (!conv) { conv = "—\n" }39head = head + "📄 گفتگو (آخرین پیامها):\n" + conv + "\n"40head = head + "✍️ پاسخ خودت رو بنویس و بفرست:"41 42await db.bot.set("wstep:" + user.id, "sreply:" + tid, { ttl: 3600 })43 44Api.sendMessage({45 chat_id: chat.id, text: head, parse_mode: "HTML",46 reply_markup: { keyboard: [[{ text: "↩️ بازگشت" }, { text: "✍️ لغو" }]], resize_keyboard: true, one_time_keyboard: true }47})