// code from goatstore // api: https://store.agi.bd module.exports = { config: { name: "tidinfo", aliases: ["threadinfo", "groupinfo"], version: "1.0.0", author: "Zihad", countDown: 5, role: 0, shortDescription: "Show group information", longDescription: "Display group name, thread ID, members, admins and other information.", category: "group", guide: "{pn}" }, onStart: async function ({ api, event, message }) { try { const threadID = event.threadID; if (!threadID) { return message.reply("❌ Thread ID পাওয়া যায়নি।"); } const info = await api.getThreadInfo(threadID); if (!info) { return message.reply("❌ Group information পাওয়া যায়নি।"); } const groupName = info.threadName || "Unnamed Group"; const memberCount = Array.isArray(info.participantIDs) ? info.participantIDs.length : 0; const adminCount = Array.isArray(info.adminIDs) ? info.adminIDs.length : 0; const emoji = info.emoji || "🙂"; const approval = info.approvalMode ? "✅ ON" : "❌ OFF"; const messageCount = info.messageCount !== undefined ? info.messageCount : "N/A"; const text = [ "╭━━━━━━━━━━━━━━━━━━━━╮", "┃ ✨ 𝗚𝗥𝗢𝗨𝗣 𝗜𝗡𝗙𝗢 ✨", "╰━━━━━━━━━━━━━━━━━━━━╯", "", "🏷️ 𝗡𝗮𝗺𝗲", "➜ " + groupName, "", "🆔 𝗧𝗵𝗿𝗲𝗮𝗱 𝗜𝗗", "➜ " + threadID, "", "👥 𝗠𝗲𝗺𝗯𝗲𝗿𝘀", "➜ " + memberCount, "", "👑 𝗔𝗱𝗺𝗶𝗻𝘀", "➜ " + adminCount, "", "💬 𝗠𝗲𝘀𝘀𝗮𝗴𝗲𝘀", "➜ " + messageCount, "", "📩 𝗔𝗽𝗽𝗿𝗼𝘃𝗮𝗹", "➜ " + approval, "", "😃 𝗘𝗺𝗼𝗷𝗶", "➜ " + emoji, "", "╭━━━━━━━━━━━━━━━━━━━━╮", "┃ ⚡ 𝗖𝗿𝗲𝗱𝗶𝘁𝘀: 𝗭𝗶𝗵𝗮𝗱", "╰━━━━━━━━━━━━━━━━━━━━╯" ].join("\n"); return message.reply(text); } catch (error) { return message.reply( "❌ 𝗧𝗜𝗗 𝗜𝗡𝗙𝗢 𝗘𝗥𝗥𝗢𝗥\n\n" + "⚠️ Group information পাওয়া যাচ্ছে না।\n" + "🔄 Bot restart করে আবার চেষ্টা করুন।" ); } } };