mahdiyar30301/ZorenixAI_botPublic · Bot Template

Not Bot Is Hacking You 🤣🤩

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

commands/anonok.js

javascript · 66 lines

Raw
1/**#command2name: anonok3answer: 4keyboard: 5parse_mode: markdown6aliases: 7allow_only_group: false8need_reply: false9is_web: 010#command**/11 12/**#command13name: anonok14answer: 15keyboard: 16parse_mode: markdown17aliases: 18allow_only_group: false19need_reply: false20is_web: 021#command**/22 23try {24try { Api.answerCallbackQuery({ text: "قبول شد" }); } catch (e0) {}25var uid = "";26if (typeof user !== "undefined" && user) {27  if (user.telegramid) uid = String(user.telegramid);28  else if (user.id) uid = String(user.id);29}30if (!uid) return;31 32var from = String((await db.global.get("anon_from_" + uid)) || "");33if (!from) {34  Bot.sendMessage("درخواست فعالی نیست.");35  return;36}37 38var myLive = (await db.global.get("anon_pair_" + uid)) || "";39var hisLive = (await db.global.get("anon_pair_" + from)) || "";40if (myLive || hisLive) {41  await db.global.set("anon_from_" + uid, "");42  await db.global.set("anon_to_" + from, "");43  Bot.sendMessage("اون نفر الان تو چت دیگری است.");44  try { Api.sendMessage({ chat_id: from, text: "❌ طرف مشغول بود. دوباره چت ناشناس را بزن." }); } catch (e1) {}45  return;46}47 48await db.global.set("anon_pair_" + uid, from);49await db.global.set("anon_pair_" + from, uid);50await db.global.set("anon_from_" + uid, "");51await db.global.set("anon_to_" + from, "");52 53var kb = {54  inline_keyboard: [55    [{ text: "⏭ نفر بعدی", callback_data: "anonnext" }, { text: "🔌 پایان", callback_data: "anonend" }]56  ]57};58try {59  Api.sendMessage({ chat_id: uid, text: "✅ قبول کردی. وصل شدید.\nهر چی بنویسی ناشناس می‌ره.", reply_markup: kb });60} catch (eA) {}61try {62  Api.sendMessage({ chat_id: from, text: "✅ طرف قبول کرد. وصل شدید.\nحرف بزن.", reply_markup: kb });63} catch (eB) {}64} catch (e) {65  Bot.sendMessage("⚠️ anonok");66}