From 4047afe3327a90b0e7bd9ed840ab632bbacc1c56 Mon Sep 17 00:00:00 2001
From: "Pedro S. Lopez"
Date: Tue, 9 Feb 2021 00:47:28 -0400
Subject: [PATCH] chore: mark version v1.12.2
---
README.md | 2 +-
docs/Base.html | 6 +++---
docs/BusinessContact.html | 6 +++---
docs/Chat.html | 6 +++---
docs/Client.html | 14 ++++++++++----
docs/Client.js.html | 7 ++++---
docs/ClientInfo.html | 6 +++---
docs/Contact.html | 6 +++---
docs/GroupChat.html | 6 +++---
docs/GroupNotification.html | 6 +++---
docs/InterfaceController.html | 6 +++---
docs/Label.html | 6 +++---
docs/Location.html | 6 +++---
docs/Message.html | 6 +++---
docs/MessageMedia.html | 6 +++---
docs/PrivateChat.html | 6 +++---
docs/PrivateContact.html | 6 +++---
docs/Util.html | 6 +++---
docs/global.html | 6 +++---
docs/index.html | 10 +++++-----
docs/structures_Base.js.html | 6 +++---
docs/structures_BusinessContact.js.html | 6 +++---
docs/structures_Chat.js.html | 6 +++---
docs/structures_ClientInfo.js.html | 6 +++---
docs/structures_Contact.js.html | 6 +++---
docs/structures_GroupChat.js.html | 6 +++---
docs/structures_GroupNotification.js.html | 6 +++---
docs/structures_Label.js.html | 6 +++---
docs/structures_Location.js.html | 6 +++---
docs/structures_Message.js.html | 12 +++++++-----
docs/structures_MessageMedia.js.html | 6 +++---
docs/structures_PrivateChat.js.html | 6 +++---
docs/structures_PrivateContact.js.html | 6 +++---
docs/util_Constants.js.html | 6 +++---
docs/util_InterfaceController.js.html | 6 +++---
docs/util_Util.js.html | 6 +++---
package.json | 2 +-
37 files changed, 121 insertions(+), 112 deletions(-)
diff --git a/README.md b/README.md
index f925d59..25d0e20 100644
--- a/README.md
+++ b/README.md
@@ -1,4 +1,4 @@
-[](https://www.npmjs.com/package/whatsapp-web.js) [](https://depfu.com/github/pedroslopez/whatsapp-web.js?project_id=9765)  [](https://discord.gg/H7DqQs4)
+[](https://www.npmjs.com/package/whatsapp-web.js) [](https://depfu.com/github/pedroslopez/whatsapp-web.js?project_id=9765)  [](https://discord.gg/H7DqQs4)
# whatsapp-web.js
A WhatsApp API client that connects through the WhatsApp Web browser app
diff --git a/docs/Base.html b/docs/Base.html
index ea5fcbe..7f729d5 100644
--- a/docs/Base.html
+++ b/docs/Base.html
@@ -4,7 +4,7 @@
- whatsapp-web.js 1.12.1 » Class: Base
+ whatsapp-web.js 1.12.2 » Class: Base
@@ -15,7 +15,7 @@
@@ -50,7 +50,7 @@
diff --git a/docs/BusinessContact.html b/docs/BusinessContact.html
index 5943c20..e2c02c8 100644
--- a/docs/BusinessContact.html
+++ b/docs/BusinessContact.html
@@ -4,7 +4,7 @@
- whatsapp-web.js 1.12.1 » Class: BusinessContact
+ whatsapp-web.js 1.12.2 » Class: BusinessContact
@@ -15,7 +15,7 @@
@@ -290,7 +290,7 @@
diff --git a/docs/Chat.html b/docs/Chat.html
index 3298589..6b6cf1e 100644
--- a/docs/Chat.html
+++ b/docs/Chat.html
@@ -4,7 +4,7 @@
- whatsapp-web.js 1.12.1 » Class: Chat
+ whatsapp-web.js 1.12.2 » Class: Chat
@@ -15,7 +15,7 @@
@@ -483,7 +483,7 @@
diff --git a/docs/Client.html b/docs/Client.html
index ae8e77c..9ea04d8 100644
--- a/docs/Client.html
+++ b/docs/Client.html
@@ -4,7 +4,7 @@
- whatsapp-web.js 1.12.1 » Class: Client
+ whatsapp-web.js 1.12.2 » Class: Client
@@ -15,7 +15,7 @@
@@ -499,7 +499,7 @@
Methods
async
- acceptInvite(inviteCode)
+ acceptInvite(inviteCode) → Promise containing string
Accepts an invitation to join a group
Parameter
@@ -531,6 +531,12 @@
+ - Returns
+ -
+
Promise containing string
+
Id of the joined Chat
+
+
async
archiveChat() → boolean
@@ -1981,7 +1987,7 @@
diff --git a/docs/Client.js.html b/docs/Client.js.html
index 0a1e65d..c261d8a 100644
--- a/docs/Client.js.html
+++ b/docs/Client.js.html
@@ -4,7 +4,7 @@
- whatsapp-web.js 1.12.1 » Source: Client.js
+ whatsapp-web.js 1.12.2 » Source: Client.js
@@ -15,7 +15,7 @@
@@ -587,6 +587,7 @@ class Client extends EventEmitter {
/**
* Accepts an invitation to join a group
* @param {string} inviteCode Invitation code
+ * @returns {Promise<string>} Id of the joined Chat
*/
async acceptInvite(inviteCode) {
const chatId = await this.pupPage.evaluate(async inviteCode => {
@@ -892,7 +893,7 @@ module.exports = Client;
diff --git a/docs/ClientInfo.html b/docs/ClientInfo.html
index 36f8203..6737061 100644
--- a/docs/ClientInfo.html
+++ b/docs/ClientInfo.html
@@ -4,7 +4,7 @@
- whatsapp-web.js 1.12.1 » Class: ClientInfo
+ whatsapp-web.js 1.12.2 » Class: ClientInfo
@@ -15,7 +15,7 @@
@@ -238,7 +238,7 @@
diff --git a/docs/Contact.html b/docs/Contact.html
index 8987b1d..5557e26 100644
--- a/docs/Contact.html
+++ b/docs/Contact.html
@@ -4,7 +4,7 @@
- whatsapp-web.js 1.12.1 » Class: Contact
+ whatsapp-web.js 1.12.2 » Class: Contact
@@ -15,7 +15,7 @@
@@ -257,7 +257,7 @@
diff --git a/docs/GroupChat.html b/docs/GroupChat.html
index 63c6ea5..8cbd4db 100644
--- a/docs/GroupChat.html
+++ b/docs/GroupChat.html
@@ -4,7 +4,7 @@
- whatsapp-web.js 1.12.1 » Class: GroupChat
+ whatsapp-web.js 1.12.2 » Class: GroupChat
@@ -15,7 +15,7 @@
@@ -921,7 +921,7 @@
diff --git a/docs/GroupNotification.html b/docs/GroupNotification.html
index 56b1b16..d8a31e8 100644
--- a/docs/GroupNotification.html
+++ b/docs/GroupNotification.html
@@ -4,7 +4,7 @@
- whatsapp-web.js 1.12.1 » Class: GroupNotification
+ whatsapp-web.js 1.12.2 » Class: GroupNotification
@@ -15,7 +15,7 @@
@@ -233,7 +233,7 @@
diff --git a/docs/InterfaceController.html b/docs/InterfaceController.html
index 61c4028..9c7f0f3 100644
--- a/docs/InterfaceController.html
+++ b/docs/InterfaceController.html
@@ -4,7 +4,7 @@
- whatsapp-web.js 1.12.1 » Class: InterfaceController
+ whatsapp-web.js 1.12.2 » Class: InterfaceController
@@ -15,7 +15,7 @@
@@ -263,7 +263,7 @@
diff --git a/docs/Label.html b/docs/Label.html
index 0b8008e..67c9b21 100644
--- a/docs/Label.html
+++ b/docs/Label.html
@@ -4,7 +4,7 @@
- whatsapp-web.js 1.12.1 » Class: Label
+ whatsapp-web.js 1.12.2 » Class: Label
@@ -15,7 +15,7 @@
@@ -163,7 +163,7 @@
diff --git a/docs/Location.html b/docs/Location.html
index 4249363..0549fdb 100644
--- a/docs/Location.html
+++ b/docs/Location.html
@@ -4,7 +4,7 @@
- whatsapp-web.js 1.12.1 » Class: Location
+ whatsapp-web.js 1.12.2 » Class: Location
@@ -15,7 +15,7 @@
@@ -149,7 +149,7 @@
diff --git a/docs/Message.html b/docs/Message.html
index edc6cf8..b36de47 100644
--- a/docs/Message.html
+++ b/docs/Message.html
@@ -4,7 +4,7 @@
- whatsapp-web.js 1.12.1 » Class: Message
+ whatsapp-web.js 1.12.2 » Class: Message
@@ -15,7 +15,7 @@
@@ -487,7 +487,7 @@
diff --git a/docs/MessageMedia.html b/docs/MessageMedia.html
index 97c7ccd..82836ac 100644
--- a/docs/MessageMedia.html
+++ b/docs/MessageMedia.html
@@ -4,7 +4,7 @@
- whatsapp-web.js 1.12.1 » Class: MessageMedia
+ whatsapp-web.js 1.12.2 » Class: MessageMedia
@@ -15,7 +15,7 @@
@@ -208,7 +208,7 @@
diff --git a/docs/PrivateChat.html b/docs/PrivateChat.html
index a875216..c9d8179 100644
--- a/docs/PrivateChat.html
+++ b/docs/PrivateChat.html
@@ -4,7 +4,7 @@
- whatsapp-web.js 1.12.1 » Class: PrivateChat
+ whatsapp-web.js 1.12.2 » Class: PrivateChat
@@ -15,7 +15,7 @@
@@ -519,7 +519,7 @@
diff --git a/docs/PrivateContact.html b/docs/PrivateContact.html
index 7b82b88..bba3773 100644
--- a/docs/PrivateContact.html
+++ b/docs/PrivateContact.html
@@ -4,7 +4,7 @@
- whatsapp-web.js 1.12.1 » Class: PrivateContact
+ whatsapp-web.js 1.12.2 » Class: PrivateContact
@@ -15,7 +15,7 @@
@@ -283,7 +283,7 @@
diff --git a/docs/Util.html b/docs/Util.html
index 55caab9..1ed1d95 100644
--- a/docs/Util.html
+++ b/docs/Util.html
@@ -4,7 +4,7 @@
- whatsapp-web.js 1.12.1 » Class: Util
+ whatsapp-web.js 1.12.2 » Class: Util
@@ -15,7 +15,7 @@
@@ -230,7 +230,7 @@
diff --git a/docs/global.html b/docs/global.html
index efaf481..0b4d812 100644
--- a/docs/global.html
+++ b/docs/global.html
@@ -4,7 +4,7 @@
- whatsapp-web.js 1.12.1 » Globals
+ whatsapp-web.js 1.12.2 » Globals
@@ -15,7 +15,7 @@
@@ -1435,7 +1435,7 @@
diff --git a/docs/index.html b/docs/index.html
index 039a96d..9bae334 100644
--- a/docs/index.html
+++ b/docs/index.html
@@ -4,7 +4,7 @@
- whatsapp-web.js 1.12.1 » Home
+ whatsapp-web.js 1.12.2 » Home
@@ -15,7 +15,7 @@
@@ -27,11 +27,11 @@
-

+

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.
@@ -2366,7 +2366,7 @@ client.initialize();
diff --git a/docs/structures_Base.js.html b/docs/structures_Base.js.html
index 10c93f5..6eeb5d1 100644
--- a/docs/structures_Base.js.html
+++ b/docs/structures_Base.js.html
@@ -4,7 +4,7 @@
- whatsapp-web.js 1.12.1 » Source: structures/Base.js
+ whatsapp-web.js 1.12.2 » Source: structures/Base.js
@@ -15,7 +15,7 @@
@@ -60,7 +60,7 @@ module.exports = Base;
diff --git a/docs/structures_BusinessContact.js.html b/docs/structures_BusinessContact.js.html
index 6711088..b49c101 100644
--- a/docs/structures_BusinessContact.js.html
+++ b/docs/structures_BusinessContact.js.html
@@ -4,7 +4,7 @@
- whatsapp-web.js 1.12.1 » Source: structures/BusinessContact.js
+ whatsapp-web.js 1.12.2 » Source: structures/BusinessContact.js
@@ -15,7 +15,7 @@
@@ -59,7 +59,7 @@ module.exports = BusinessContact;
diff --git a/docs/structures_Chat.js.html b/docs/structures_Chat.js.html
index 93cba90..daeb79f 100644
--- a/docs/structures_Chat.js.html
+++ b/docs/structures_Chat.js.html
@@ -4,7 +4,7 @@
- whatsapp-web.js 1.12.1 » Source: structures/Chat.js
+ whatsapp-web.js 1.12.2 » Source: structures/Chat.js
@@ -15,7 +15,7 @@
@@ -288,7 +288,7 @@ module.exports = Chat;
diff --git a/docs/structures_ClientInfo.js.html b/docs/structures_ClientInfo.js.html
index e9477a1..19b2ed4 100644
--- a/docs/structures_ClientInfo.js.html
+++ b/docs/structures_ClientInfo.js.html
@@ -4,7 +4,7 @@
- whatsapp-web.js 1.12.1 » Source: structures/ClientInfo.js
+ whatsapp-web.js 1.12.2 » Source: structures/ClientInfo.js
@@ -15,7 +15,7 @@
@@ -108,7 +108,7 @@ module.exports = ClientInfo;
diff --git a/docs/structures_Contact.js.html b/docs/structures_Contact.js.html
index 7548281..950102d 100644
--- a/docs/structures_Contact.js.html
+++ b/docs/structures_Contact.js.html
@@ -4,7 +4,7 @@
- whatsapp-web.js 1.12.1 » Source: structures/Contact.js
+ whatsapp-web.js 1.12.2 » Source: structures/Contact.js
@@ -15,7 +15,7 @@
@@ -219,7 +219,7 @@ module.exports = Contact;
diff --git a/docs/structures_GroupChat.js.html b/docs/structures_GroupChat.js.html
index b795253..926bb7b 100644
--- a/docs/structures_GroupChat.js.html
+++ b/docs/structures_GroupChat.js.html
@@ -4,7 +4,7 @@
- whatsapp-web.js 1.12.1 » Source: structures/GroupChat.js
+ whatsapp-web.js 1.12.2 » Source: structures/GroupChat.js
@@ -15,7 +15,7 @@
@@ -239,7 +239,7 @@ module.exports = GroupChat;
diff --git a/docs/structures_GroupNotification.js.html b/docs/structures_GroupNotification.js.html
index 352c210..3317ef4 100644
--- a/docs/structures_GroupNotification.js.html
+++ b/docs/structures_GroupNotification.js.html
@@ -4,7 +4,7 @@
- whatsapp-web.js 1.12.1 » Source: structures/GroupNotification.js
+ whatsapp-web.js 1.12.2 » Source: structures/GroupNotification.js
@@ -15,7 +15,7 @@
@@ -143,7 +143,7 @@ module.exports = GroupNotification;
diff --git a/docs/structures_Label.js.html b/docs/structures_Label.js.html
index ca961ce..ecc9ca0 100644
--- a/docs/structures_Label.js.html
+++ b/docs/structures_Label.js.html
@@ -4,7 +4,7 @@
- whatsapp-web.js 1.12.1 » Source: structures/Label.js
+ whatsapp-web.js 1.12.2 » Source: structures/Label.js
@@ -15,7 +15,7 @@
@@ -88,7 +88,7 @@ module.exports = Label;
diff --git a/docs/structures_Location.js.html b/docs/structures_Location.js.html
index 642fe0a..5729b01 100644
--- a/docs/structures_Location.js.html
+++ b/docs/structures_Location.js.html
@@ -4,7 +4,7 @@
- whatsapp-web.js 1.12.1 » Source: structures/Location.js
+ whatsapp-web.js 1.12.2 » Source: structures/Location.js
@@ -15,7 +15,7 @@
@@ -71,7 +71,7 @@ module.exports = Location;
diff --git a/docs/structures_Message.js.html b/docs/structures_Message.js.html
index 16760cd..6384c9f 100644
--- a/docs/structures_Message.js.html
+++ b/docs/structures_Message.js.html
@@ -4,7 +4,7 @@
- whatsapp-web.js 1.12.1 » Source: structures/Message.js
+ whatsapp-web.js 1.12.2 » Source: structures/Message.js
@@ -15,7 +15,7 @@
@@ -71,7 +71,7 @@ class Message extends Base {
* Indicates if the message has media available for download
* @type {boolean}
*/
- this.hasMedia = data.clientUrl ? true : false;
+ this.hasMedia = data.clientUrl || data.deprecatedMms3Url ? true : false;
/**
* Message content
@@ -284,7 +284,9 @@ class Message extends Base {
return undefined;
}
- const buffer = await window.WWebJS.downloadBuffer(msg.clientUrl);
+ const mediaUrl = msg.clientUrl || msg.deprecatedMms3Url;
+
+ const buffer = await window.WWebJS.downloadBuffer(mediaUrl);
const decrypted = await window.Store.CryptoLib.decryptE2EMedia(msg.type, buffer, msg.mediaKey, msg.mimetype);
const data = await window.WWebJS.readBlobAsync(decrypted._blob);
@@ -384,7 +386,7 @@ module.exports = Message;
diff --git a/docs/structures_MessageMedia.js.html b/docs/structures_MessageMedia.js.html
index c37fe05..f553a4b 100644
--- a/docs/structures_MessageMedia.js.html
+++ b/docs/structures_MessageMedia.js.html
@@ -4,7 +4,7 @@
- whatsapp-web.js 1.12.1 » Source: structures/MessageMedia.js
+ whatsapp-web.js 1.12.2 » Source: structures/MessageMedia.js
@@ -15,7 +15,7 @@
@@ -86,7 +86,7 @@ module.exports = MessageMedia;
diff --git a/docs/structures_PrivateChat.js.html b/docs/structures_PrivateChat.js.html
index fcc095a..20f6900 100644
--- a/docs/structures_PrivateChat.js.html
+++ b/docs/structures_PrivateChat.js.html
@@ -4,7 +4,7 @@
- whatsapp-web.js 1.12.1 » Source: structures/PrivateChat.js
+ whatsapp-web.js 1.12.2 » Source: structures/PrivateChat.js
@@ -15,7 +15,7 @@
@@ -51,7 +51,7 @@ module.exports = PrivateChat;
diff --git a/docs/structures_PrivateContact.js.html b/docs/structures_PrivateContact.js.html
index d878a7a..56ede0b 100644
--- a/docs/structures_PrivateContact.js.html
+++ b/docs/structures_PrivateContact.js.html
@@ -4,7 +4,7 @@
- whatsapp-web.js 1.12.1 » Source: structures/PrivateContact.js
+ whatsapp-web.js 1.12.2 » Source: structures/PrivateContact.js
@@ -15,7 +15,7 @@
@@ -51,7 +51,7 @@ module.exports = PrivateContact;
diff --git a/docs/util_Constants.js.html b/docs/util_Constants.js.html
index 5012324..5b4dd8d 100644
--- a/docs/util_Constants.js.html
+++ b/docs/util_Constants.js.html
@@ -4,7 +4,7 @@
- whatsapp-web.js 1.12.1 » Source: util/Constants.js
+ whatsapp-web.js 1.12.2 » Source: util/Constants.js
@@ -15,7 +15,7 @@
@@ -174,7 +174,7 @@ exports.MessageAck = {
diff --git a/docs/util_InterfaceController.js.html b/docs/util_InterfaceController.js.html
index 0461de3..bd28fc1 100644
--- a/docs/util_InterfaceController.js.html
+++ b/docs/util_InterfaceController.js.html
@@ -4,7 +4,7 @@
- whatsapp-web.js 1.12.1 » Source: util/InterfaceController.js
+ whatsapp-web.js 1.12.2 » Source: util/InterfaceController.js
@@ -15,7 +15,7 @@
@@ -116,7 +116,7 @@ module.exports = InterfaceController;
diff --git a/docs/util_Util.js.html b/docs/util_Util.js.html
index 6d6c878..1f262f3 100644
--- a/docs/util_Util.js.html
+++ b/docs/util_Util.js.html
@@ -4,7 +4,7 @@
- whatsapp-web.js 1.12.1 » Source: util/Util.js
+ whatsapp-web.js 1.12.2 » Source: util/Util.js
@@ -15,7 +15,7 @@
@@ -197,7 +197,7 @@ module.exports = Util;
diff --git a/package.json b/package.json
index 4bb1da8..349f29f 100644
--- a/package.json
+++ b/package.json
@@ -1,6 +1,6 @@
{
"name": "whatsapp-web.js",
- "version": "1.12.1",
+ "version": "1.12.2",
"description": "Library for interacting with the WhatsApp Web API ",
"main": "./index.js",
"typings": "./index.d.ts",