Skip to content

Fix: Group Creation default params#201768

Open
BenyFilho wants to merge 1 commit into
wwebjs:mainfrom
BenyFilho:group_creation_params
Open

Fix: Group Creation default params#201768
BenyFilho wants to merge 1 commit into
wwebjs:mainfrom
BenyFilho:group_creation_params

Conversation

@BenyFilho
Copy link
Copy Markdown
Member

@BenyFilho BenyFilho commented May 26, 2026

Description

Fixing default params when creating a group.
Meta made recent anti-pattern changes with parameters announce and restrict.
That was identified by @avbasov and discussed in #201767

Closes #201767

Testing Summary

Test Details

client.on('ready', async () => {
   const partitipantsToAdd = [
        'xxxxxxx@c.us',
        'xxxxxxx@c.us',
        'xxxxxxx@lid',
    ];
    const result = await client.createGroup('Group Title', partitipantsToAdd);
    console.log(result)
});;

You can try the fix by running one of the following commands:

  • NPM
    npm install github:BenyFilho/whatsapp-web.js#group_creation_params

  • YARN
    yarn add github:BenyFilho/whatsapp-web.js#group_creation_params

Environment

  • Machine OS:

Windows 10

  • Phone OS:
    Android 11

  • Library Version:

1.34.7

  • WhatsApp Web Version:

2.3000.1040125391

  • Browser Type and Version:

Chrome 148.0.7778.179

  • Node Version:

18.20.2

Type of Change

  • Dependency change (package changes such as removals, upgrades, or additions)
  • Bug fix (non-breaking change that fixes an issue)
  • New feature (non-breaking change that adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to change)
  • Non-code change (documentation, README, etc.)

Checklist

  • My code follows the style guidelines of this project.
  • All new and existing tests pass (npm test).
  • Typings (e.g. index.d.ts) have been updated if necessary.
  • Usage examples (e.g. example.js) / documentation have been updated if applicable.

@github-actions github-actions Bot added the api changes API modifications label May 26, 2026
@BenyFilho BenyFilho changed the title Group Creation default params Fix: Group Creation default params May 26, 2026
@BenyFilho BenyFilho changed the title Group Creation default params Fix: Group Creation default params May 26, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

api changes API modifications

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Groups are created in announce mode by default

1 participant