grupo-link.js 356 B

123456789101112
  1. import fs from 'fs';
  2. const handler = async (m, {conn, args}) => {
  3. const group = m.chat;
  4. m.reply('https://chat.whatsapp.com/' + await conn.groupInviteCode(group))
  5. };
  6. handler.help = ['linkgroup'];
  7. handler.tags = ['group'];
  8. handler.command = /^link(gro?up)?$/i;
  9. handler.group = true;
  10. handler.botAdmin = true;
  11. handler.register = true
  12. export default handler;