Skip to content

Instantly share code, notes, and snippets.

@gekkedev
Last active March 26, 2025 15:21
Show Gist options
  • Select an option

  • Save gekkedev/04d7e5122dc09bd004229cb20ca15f3d to your computer and use it in GitHub Desktop.

Select an option

Save gekkedev/04d7e5122dc09bd004229cb20ca15f3d to your computer and use it in GitHub Desktop.
Extract all admins from a WhatsApp group 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. Open a group chat and 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