This update includes important fixes for proper compatibility with WhatsApp Web v2.2035.12+. More specifically, it addresses issues sending media files as well as detecting successful authentication with dark mode enabled.
New features
Set display name (aka pushname)
Allows you to update the name that will be displayed with your number to other users that don't have you added as a Contact.
client.setDisplayName("John Doe")
Forward messages
message.forward(chat); // Pass a `Chat` object to send the message to
message.forward(chatId); // Pass a chat ID string to send the message to
Chat <-> Contact link
To ease moving between models, functions have been added to get to a Chat from its related Contact, and vice-versa.
const contact = await chat.getContact();
const chat = await contact.getChat();
Change log
8627fc3 - chore: mark version v1.8.0
502b22f - feat: forward messages
590ecc2 - chore: update supported WhatsApp Web version to 2.2035.12
7da8345 - fix: upload media
4344df6 - fix: properly detect successful authentication on dark mode
3822594 - feat(dev): Interactive shell for quick testing/exploration
7180bed - feat: Get corresponding Chat from Contact object and vice versa
34aa136 - fix(docs): Correctly document Chat timestamp property
2a58cfe - fix(types): properly set optional arguments when sending / replying to messages
9da553e - feat: Set client's display name (pushname)
97705b1 - fix: MessageMedia interface to class (index.d.ts) (#301)
fbdfd2c - fix: Constants export in index.js (#285)
5c84a16 - chore: add missing types in JSDoc/TSDoc (ClientOptions, ClientInfo, MessageSendOptions, Session) (#286)
bfea74f - fix: add missing type definitions (#278)
a10b458 - feat: custom user Agent in Client (#271)
de2c441 - chore: update supported whatsapp web version 2.2025.6
bff60bc - chore: bump version v1.7.0-post