Skip to content

Releases: pedroslopez/whatsapp-web.js

v0.3.1 - Headless mode fix

04 Dec 07:02
Compare
Choose a tag to compare

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!)

24 Nov 08:29
Compare
Choose a tag to compare

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

11 Oct 02:10
Compare
Choose a tag to compare

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 and setSubject on groups.

v0.1.2 - Fix WhatsApp Web Changes

30 May 04:01
Compare
Choose a tag to compare

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.