-

+

whatsapp-web.js
A WhatsApp API client that connects through the WhatsApp Web browser app
It uses Puppeteer to run a real instance of Whatsapp Web to avoid getting blocked.
@@ -578,6 +578,11 @@ client.initialize();
+
+ Client#getProfilePicUrl(contactId)
+
+
+
Client#getState()
@@ -608,6 +613,11 @@ client.initialize();
+
+ Client#sendPresenceAvailable()
+
+
+
Client#sendSeen(chatId)
diff --git a/docs/structures_Base.js.html b/docs/structures_Base.js.html
index 249086b..1e65570 100644
--- a/docs/structures_Base.js.html
+++ b/docs/structures_Base.js.html
@@ -4,7 +4,7 @@
- whatsapp-web.js 1.4.1 » Source: structures/Base.js
+ whatsapp-web.js 1.5.0 » Source: structures/Base.js
@@ -15,7 +15,7 @@
diff --git a/docs/structures_BusinessContact.js.html b/docs/structures_BusinessContact.js.html
index 62cdfa6..aff091f 100644
--- a/docs/structures_BusinessContact.js.html
+++ b/docs/structures_BusinessContact.js.html
@@ -4,7 +4,7 @@
- whatsapp-web.js 1.4.1 » Source: structures/BusinessContact.js
+ whatsapp-web.js 1.5.0 » Source: structures/BusinessContact.js
@@ -15,7 +15,7 @@
diff --git a/docs/structures_Chat.js.html b/docs/structures_Chat.js.html
index 42539d4..54bc8c0 100644
--- a/docs/structures_Chat.js.html
+++ b/docs/structures_Chat.js.html
@@ -4,7 +4,7 @@
- whatsapp-web.js 1.4.1 » Source: structures/Chat.js
+ whatsapp-web.js 1.5.0 » Source: structures/Chat.js
@@ -15,7 +15,7 @@
diff --git a/docs/structures_ClientInfo.js.html b/docs/structures_ClientInfo.js.html
index a644737..8daff83 100644
--- a/docs/structures_ClientInfo.js.html
+++ b/docs/structures_ClientInfo.js.html
@@ -4,7 +4,7 @@
- whatsapp-web.js 1.4.1 » Source: structures/ClientInfo.js
+ whatsapp-web.js 1.5.0 » Source: structures/ClientInfo.js
@@ -15,7 +15,7 @@
diff --git a/docs/structures_Contact.js.html b/docs/structures_Contact.js.html
index be071bf..7b2c04e 100644
--- a/docs/structures_Contact.js.html
+++ b/docs/structures_Contact.js.html
@@ -4,7 +4,7 @@
- whatsapp-web.js 1.4.1 » Source: structures/Contact.js
+ whatsapp-web.js 1.5.0 » Source: structures/Contact.js
@@ -15,7 +15,7 @@
@@ -134,11 +134,7 @@ class Contact extends Base {
* @returns {Promise<string>}
*/
async getProfilePicUrl() {
- const profilePic = await this.client.pupPage.evaluate((contactId) => {
- return window.Store.Wap.profilePicFind(contactId);
- }, this.id._serialized);
-
- return profilePic ? profilePic.eurl : undefined;
+ return await this.client.getProfilePicUrl(this.id._serialized);
}
}
diff --git a/docs/structures_GroupChat.js.html b/docs/structures_GroupChat.js.html
index 9793908..bd3858f 100644
--- a/docs/structures_GroupChat.js.html
+++ b/docs/structures_GroupChat.js.html
@@ -4,7 +4,7 @@
- whatsapp-web.js 1.4.1 » Source: structures/GroupChat.js
+ whatsapp-web.js 1.5.0 » Source: structures/GroupChat.js
@@ -15,7 +15,7 @@
diff --git a/docs/structures_GroupNotification.js.html b/docs/structures_GroupNotification.js.html
index 56ec430..5abd0b2 100644
--- a/docs/structures_GroupNotification.js.html
+++ b/docs/structures_GroupNotification.js.html
@@ -4,7 +4,7 @@
- whatsapp-web.js 1.4.1 » Source: structures/GroupNotification.js
+ whatsapp-web.js 1.5.0 » Source: structures/GroupNotification.js
@@ -15,7 +15,7 @@
diff --git a/docs/structures_Location.js.html b/docs/structures_Location.js.html
index 0b1e02f..8e2bac3 100644
--- a/docs/structures_Location.js.html
+++ b/docs/structures_Location.js.html
@@ -4,7 +4,7 @@
- whatsapp-web.js 1.4.1 » Source: structures/Location.js
+ whatsapp-web.js 1.5.0 » Source: structures/Location.js
@@ -15,7 +15,7 @@
diff --git a/docs/structures_Message.js.html b/docs/structures_Message.js.html
index 8ddfac9..d08982e 100644
--- a/docs/structures_Message.js.html
+++ b/docs/structures_Message.js.html
@@ -4,7 +4,7 @@
- whatsapp-web.js 1.4.1 » Source: structures/Message.js
+ whatsapp-web.js 1.5.0 » Source: structures/Message.js
@@ -15,7 +15,7 @@
diff --git a/docs/structures_MessageMedia.js.html b/docs/structures_MessageMedia.js.html
index f7cca3b..2309f1b 100644
--- a/docs/structures_MessageMedia.js.html
+++ b/docs/structures_MessageMedia.js.html
@@ -4,7 +4,7 @@
- whatsapp-web.js 1.4.1 » Source: structures/MessageMedia.js
+ whatsapp-web.js 1.5.0 » Source: structures/MessageMedia.js
@@ -15,7 +15,7 @@
diff --git a/docs/structures_PrivateChat.js.html b/docs/structures_PrivateChat.js.html
index 73b3b53..fe6a745 100644
--- a/docs/structures_PrivateChat.js.html
+++ b/docs/structures_PrivateChat.js.html
@@ -4,7 +4,7 @@
- whatsapp-web.js 1.4.1 » Source: structures/PrivateChat.js
+ whatsapp-web.js 1.5.0 » Source: structures/PrivateChat.js
@@ -15,7 +15,7 @@
diff --git a/docs/structures_PrivateContact.js.html b/docs/structures_PrivateContact.js.html
index f7815f7..d4a0bc9 100644
--- a/docs/structures_PrivateContact.js.html
+++ b/docs/structures_PrivateContact.js.html
@@ -4,7 +4,7 @@
- whatsapp-web.js 1.4.1 » Source: structures/PrivateContact.js
+ whatsapp-web.js 1.5.0 » Source: structures/PrivateContact.js
@@ -15,7 +15,7 @@
diff --git a/docs/util_Constants.js.html b/docs/util_Constants.js.html
index 1ff063f..28e5807 100644
--- a/docs/util_Constants.js.html
+++ b/docs/util_Constants.js.html
@@ -4,7 +4,7 @@
- whatsapp-web.js 1.4.1 » Source: util/Constants.js
+ whatsapp-web.js 1.5.0 » Source: util/Constants.js
@@ -15,7 +15,7 @@
@@ -43,6 +43,8 @@ exports.DefaultOptions = {
qrTimeoutMs: 45000,
qrRefreshIntervalMs: 20000,
authTimeoutMs: 45000,
+ takeoverOnConflict: false,
+ takeoverTimeoutMs: 0
};
/**
diff --git a/docs/util_Util.js.html b/docs/util_Util.js.html
index 399f4c6..5c28824 100644
--- a/docs/util_Util.js.html
+++ b/docs/util_Util.js.html
@@ -4,7 +4,7 @@
- whatsapp-web.js 1.4.1 » Source: util/Util.js
+ whatsapp-web.js 1.5.0 » Source: util/Util.js
@@ -15,7 +15,7 @@
diff --git a/package.json b/package.json
index cd62f8f..77b75d4 100644
--- a/package.json
+++ b/package.json
@@ -1,6 +1,6 @@
{
"name": "whatsapp-web.js",
- "version": "1.4.1-post",
+ "version": "1.5.0",
"description": "Library for interacting with the WhatsApp Web API ",
"main": "./index.js",
"scripts": {