Skip to content

Instantly share code, notes, and snippets.

@gekkedev
Created November 19, 2024 17:13
Show Gist options
  • Save gekkedev/04d7e5122dc09bd004229cb20ca15f3d to your computer and use it in GitHub Desktop.
Save gekkedev/04d7e5122dc09bd004229cb20ca15f3d to your computer and use it in GitHub Desktop.
Extract all admins from a WhatsAppgroup via WhatsApp Web
// 1. Log in to WhatsApp Web (http://web.whatsapp.com)
// 2. Download https://github.com/wppconnect-team/wa-js/releases/download/nightly/wppconnect-wa.js
// 3. Open the file and copy its contents.
// 4. Navigate back to WhatsApp Web and press F12
// (*allow pasting* if necessary)
// 5. paste this snippet into the browser console:
WPP.chat.getActiveChat().groupMetadata.participants.getAdmins().map(admin => admin.id.user)
// The output is a string array of international phone numbers without leading zeroes, plus signs, spaces, dashes, slashes, etc.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment