MCPcopy Create free account
hub / github.com/asternic/wuzapi / extractInviteCode

Function extractInviteCode

static/dashboard/js/groups.js:907–911  ·  view source on GitHub ↗
(input)

Source from the content-addressed store, hash-verified

905}
906
907function extractInviteCode(input) {
908 // Extract code from WhatsApp invite link or return as-is if it's just a code
909 const match = input.match(/chat\.whatsapp\.com\/([A-Za-z0-9]+)/);
910 return match ? match[1] : input;
911}
912
913// API Functions
914async function getGroups() {

Callers 2

previewGroupFunction · 0.85
joinGroupFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected