mahdiyar30301/ZorenixAI_botPublic · Bot Template

Not Bot Is Hacking You 🤣🤩

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

commands/myid.js

javascript · 40 lines

Raw
1/**#command2name: myid3answer: 4keyboard: 5parse_mode: markdown6aliases: 7allow_only_group: false8need_reply: false9is_web: 010#command**/11 12/**#command13name: myid14answer: 15keyboard: 16parse_mode: markdown17aliases: 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}30var cid = "";31try { if (typeof chat !== "undefined" && chat && chat.id) cid = String(chat.id); } catch (eC) {}32var un = "";33try { if (user && user.username) un = String(user.username); } catch (eU) {}34var line = "🆔 آیدی تو: " + uid;35if (un) line = line + "\nیوزرنیم: " + un;36if (cid && cid !== uid) line = line + "\nچت: " + cid;37Bot.sendMessage(line);38} catch (e) {39  Bot.sendMessage("خطا myid");40}