-

npm Depfu WhatsApp_Web 2.2049.10 Discord Chat

+

npm Depfu WhatsApp_Web 2.2104.6 Discord Chat

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",