Xzone catalysT
前往频道在 Telegram
Official Channel Xzone catalysT Owner: @zepysk 2nd Channel: @XzC_Exposed Donate link: https://www.zeppeli.my.id The numbers in the content are the property of the adminz
显示更多未指定国家未指定类别
658
订阅者
+1224 小时
+1327 天
+22930 天
帖子存档
New group admins metadata isBot variables from lid migration👍
const botNumber = WaSocket?.user?.lid.split(":")[0] + "@lid" || WaSocket?.user?.id.split(":")[0] + "@s.whatsapp.net";
const isBot = botNumber.includes(m.sender)
const isGroup = m.chat.endsWith("g.us");
const groupMetadata = isGroup ? WaSocket.groupMetadata(m.chat) : "";
const participants = isGroup ? groupMetadata?.participants || [] : [];
const groupAdmins = isGroup ? participants.filter((v) => v.admin !== null).map((v) => v.?id || v.lid) : [];
const isBotAdmins = isGroup ? groupAdmins.includes(botNumber) : false;
const isAdmins = isGroup ? groupAdmins.includes(m.sender) : false;
(@XzC_Information - @XzC_Communitiez)
Simple user-bot base based from xzcgram module
Source: https://github.com/XazepysK/xzubot
(@XzC_Information - @XzC_Communitiez)
Updated to 0.0.2
- fix chatId entities bug - fix deprecated class ( callBackQuery )Ubot base are coming up
