Skip to content

feat: add @all mention#201801

Open
BenyFilho wants to merge 7 commits into
wwebjs:mainfrom
BenyFilho:add_all_mention
Open

feat: add @all mention#201801
BenyFilho wants to merge 7 commits into
wwebjs:mainfrom
BenyFilho:add_all_mention

Conversation

@BenyFilho

Copy link
Copy Markdown
Member

Description

Add @ALL to mention, now only using the string @ALL it's possible to mention everybody, there's no need to map all participants.

Credits: AviFs Discord user

Testing Summary

Test Details

client.on('ready', async () => {
    //Not hidden mention
    await client.sendMessage( 'xxxxx@g.us' , '@all Mention Everybody', { mentions: '@all' } );
    //Hidden mention
    await client.sendMessage( 'xxxxx@g.us' , 'Mention Everybody', { mentions: '@all' } );
});

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

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

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

Environment

  • Machine OS:

Windows 10

  • Phone OS:

Android 11

  • Library Version:

1.34.7

  • WhatsApp Web Version:

2.3000.1041831138

  • Browser Type and Version:

Chrome 149.0.7827.156

  • 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 api changes API modifications typings Type definitions utility Utility code labels Jun 20, 2026
@BenyFilho BenyFilho added the approved Confirmed by maintainers label Jun 20, 2026
@lindionez

Copy link
Copy Markdown
Contributor

Not work from me
image
image
image

@BenyFilho

Copy link
Copy Markdown
Member Author

Not work from me image image image

Fixed

@lindionez

Copy link
Copy Markdown
Contributor

Working

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

api changes API modifications approved Confirmed by maintainers typings Type definitions utility Utility code

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants