npm whatsapp-web.js 1.5.0
v1.5.0 - Session takeover, link previews, send online status

latest releases: 1.23.1-alpha.5, 1.23.1-alpha.4, 1.23.1-alpha.3...
4 years ago

Reconnect timeout on conflict

Two new options have been added to be able to reconnect the client when a conflict occurs due to another browser opening WhatsApp Web:

  • takeoverOnConflict - (default false) If true will take control of the session after "takeoverTimeoutMs". If false, has same functionality as before where the client will disconnect.
  • takeoverTimeoutMs - (default 0) indicates how long it will wait before trying to takeover. By default it takes over right away (0), but you can set for example 10000 to takeover after 10 seconds.

Presence

You can now indicate the client is online by using client.sendPresenceAvailable. This only lasts for a couple seconds.

Link previews

By default, link previews will now be included. This means that when a link is present in a message, it will look like this:

image

If you don't want this, you can disable it by sending linkPreview: false as an option when sending a message.

Changelog

044f622 - feat: link previews
2b3c3e9 - docs: add new param to jsdoc for getProfilePicUrl
8528d9b - feat: get profile pic url by user ID
7eb7fa8 - feat: send online status
478f713 - feat: takeover on conflict
20bbe3d - readme: add discord logo to shield
33db17e - add discord link

Don't miss a new whatsapp-web.js release

NewReleases is sending notifications on new releases.