mahdiyar30301/ZorenixAI_botPublic · Bot Template

Not Bot Is Hacking You 🤣🤩

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

commands/typ.js

javascript · 62 lines

Raw
1/**#command2name: typ3answer: 4keyboard: 5parse_mode: markdown6aliases: 7allow_only_group: false8need_reply: false9is_web: 010#command**/11 12/**#command13name: typ14answer: 15keyboard: 16parse_mode: 17aliases: 18allow_only_group: false19need_reply: false20is_web: 021#command**/22 23try {24try { Api.answerCallbackQuery({}); } 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 peer = String((await db.global.get("typ_peer_" + uid)) || "");33var host = String((await db.global.get("typ_host_" + uid)) || "");34if (!host) host = uid;35await db.global.set("typ_host_" + uid, host);36if (uid === host && !peer) {37  var sl = "https://t.me/ZorenixAI_bot?start=typ_" + uid;38  var sh = "https://t.me/share/url?url=" + sl.split("?").join("%3F");39  var bet = parseInt(await db.global.get("typ_bet_" + uid) || 0) || 0;40  Api.sendMessage({41    text:42      "⌨️ چالش تایپ\n───────────────\n" +43      "لینک را برای دوست بفرست. هر دو آماده شوند.\n" +44      "جمله می‌آید؛ هر که زودتر همان را بفرستد برنده است.\n" +45      "شرط فعلی: " + bet + " ZC (۰ = بدون شرط)",46    reply_markup: { inline_keyboard: [47      [{ text: "📤 دعوت", url: sh }],48      [{ text: "💰 شرط ۰/۵/۲۰", callback_data: "typbet" }, { text: "✅ آماده‌ام", callback_data: "typgo" }],49      [{ text: "✨ پلاس", callback_data: "plus" }]50    ] }51  });52  return;53}54Api.sendMessage({55  text: "⌨️ چالش تایپ\nحریف وصل است. آماده شوید.",56  reply_markup: { inline_keyboard: [57    [{ text: "✅ آماده‌ام", callback_data: "typgo" }],58    [{ text: "✨ پلاس", callback_data: "plus" }]59  ] }60});61 62} catch (e) { Bot.sendMessage("خطا typ"); }