455 commands2 envUpdated 7h agoCreated Aug 26, 2026
commands/fnd.js
javascript · 63 lines
1/**#command2name: fnd3answer: 4keyboard: 5parse_mode: markdown6aliases: 7allow_only_group: false8need_reply: false9is_web: 010#command**/11 12/**#command13name: fnd14answer: 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;31await db.global.set("await_fnd_" + uid, "1");32var raw = "";33if (typeof params !== "undefined" && params) raw = String(params).trim();34if (raw) {35 try { Bot.runCommand("fndin"); } catch (e1) {}36 return;37}38var kb = {39 keyboard: [40 [41 { text: "👤 User", request_user: { request_id: 1, user_is_bot: false } },42 { text: "🤖 Bot", request_user: { request_id: 2, user_is_bot: true } }43 ],44 [45 { text: "👥 Group", request_chat: { request_id: 3, chat_is_channel: false } },46 { text: "📢 Channel", request_chat: { request_id: 4, chat_is_channel: true } }47 ],48 [{ text: "🔢 آیدی عددی" }],49 [{ text: "🔴 لغو" }]50 ],51 resize_keyboard: true52};53var txt =54 "🔍 پیدا کردن آیدی عددی\n───────────────\n" +55 "از لیست تلگرام انتخاب کن — حتی اگر یوزرنیم نداشته باشد، عدد میآید.\n" +56 "یا 🔢 آیدی عددی را بزن و عدد را بفرست.\n\n" +57 "لغو = برگشت به منو";58try {59 Api.sendMessage({ text: txt, reply_markup: kb });60} catch (eK) {61 Bot.sendMessage(txt);62}63} catch (e) { Bot.sendMessage("خطا fnd"); }