@wppconnect/wa-js - v4.3.1
    Preparing search index...

    Function join

    • Join in a group from an invite code.

      When the group requires admin approval (membershipApprovalMode: true), the method returns { id, pendingApproval: true } instead of throwing UnexpectedJoinGroupViaInviteResponse (issues #2221 / #2746).

      Parameters

      • inviteCode: string

      Returns Promise<JoinGroupResult>

      const result = await WPP.group.join('abcde....');
      if (result.pendingApproval) {
      console.log('Request sent — waiting for admin approval');
      }