Releases: pedroslopez/whatsapp-web.js
Releases · pedroslopez/whatsapp-web.js
v0.3.1 - Headless mode fix
Headless mode stopped working, returning null
as the QR code. This fixes the issue by directly extracting the code from the canvas element present in the page instead of the data attribute, which did not get set while in headless mode.
v0.3.0 - Download attachments (images, documents and more!)
This release introduces a feature to get a message's attachments.
Messages now have a downloadMedia()
function, which is a promise that will return an object in the following format:
{
mimetype: 'image/jpeg',
filename: '' // if it's a document, this will have the original filename of the file
data: 'data:image/jpeg;base64,/9j/4AAQS...'
}
You can check if a message has media attached by using the hasMedia
property. This works for images, videos, audio, voice notes, documents and stickers!
v0.2.0
This release fixes WhatsApp Web changes that prevented the library from working.
Also in this release:
- New
message_create
event that is fired on all message creations, including your own. - New
getChats()
function on the Client to get all open chats. - FIX for
setDescription
andsetSubject
on groups.
v0.1.2 - Fix WhatsApp Web Changes
Change Log:
- CSS class names updated for QR code and authentication detectors
- Store is properly loaded
- New sendTextMsgToChat function is now exposed in the Store, substituting the old (removed) Chat.sendMessage funciton
Known issues:
- Subject and Description can't be set for group chats. This is due to a change in WhatsApp Web that removes the required functions from the Chat model. You can track this issue at #6.