Created
November 19, 2024 17:13
-
-
Save gekkedev/04d7e5122dc09bd004229cb20ca15f3d to your computer and use it in GitHub Desktop.
Extract all admins from a WhatsAppgroup via WhatsApp Web
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 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