From 088ec32b7bedae76f4e1b9fea06ed6a09cacc477 Mon Sep 17 00:00:00 2001 From: "Pedro S. Lopez" Date: Wed, 26 Oct 2022 22:43:19 -0400 Subject: [PATCH 1/5] Support for WhatsApp Web 2.2241.6 (#1762) * proposed fix * Fixes * Add condition for older versions of WA * fix for old node version support * fix: default to mdbackend = true Co-authored-by: purpshell --- src/util/Injected.js | 15 +++++++++++++-- 1 file changed, 13 insertions(+), 2 deletions(-) diff --git a/src/util/Injected.js b/src/util/Injected.js index b1ae286..4184de8 100644 --- a/src/util/Injected.js +++ b/src/util/Injected.js @@ -13,7 +13,6 @@ exports.ExposeStore = (moduleRaidStr) => { window.Store.Cmd = window.mR.findModule('Cmd')[0].Cmd; window.Store.CryptoLib = window.mR.findModule('decryptE2EMedia')[0]; window.Store.DownloadManager = window.mR.findModule('downloadManager')[0].downloadManager; - window.Store.MDBackend = window.mR.findModule('isMDBackend')[0].isMDBackend(); window.Store.Features = window.mR.findModule('FEATURE_CHANGE_EVENT')[0].LegacyPhoneFeatures; window.Store.GroupMetadata = window.mR.findModule((module) => module.default && module.default.handlePendingInvite)[0].default; window.Store.Invite = window.mR.findModule('sendJoinGroupViaInvite')[0]; @@ -39,7 +38,6 @@ exports.ExposeStore = (moduleRaidStr) => { window.Store.UserConstructor = window.mR.findModule((module) => (module.default && module.default.prototype && module.default.prototype.isServer && module.default.prototype.isUser) ? module.default : null)[0].default; window.Store.Validators = window.mR.findModule('findLinks')[0]; window.Store.VCard = window.mR.findModule('vcardFromContactModel')[0]; - window.Store.Wap = window.mR.findModule('queryLinkPreview')[0].default; window.Store.WidFactory = window.mR.findModule('createWid')[0]; window.Store.ProfilePic = window.mR.findModule('profilePicResync')[0]; window.Store.PresenceUtils = window.mR.findModule('sendPresenceAvailable')[0]; @@ -71,6 +69,19 @@ exports.ExposeStore = (moduleRaidStr) => { }); }; } + + // TODO remove these once everybody has been updated to WWebJS with legacy sessions removed + const _linkPreview = window.mR.findModule('queryLinkPreview'); + if (_linkPreview && _linkPreview[0] && _linkPreview[0].default) { + window.Store.Wap = _linkPreview[0].default; + } + + const _isMDBackend = window.mR.findModule('isMDBackend'); + if(_isMDBackend && _isMDBackend[0] && _isMDBackend[0].isMDBackend) { + window.Store.MDBackend = _isMDBackend[0].isMDBackend(); + } else { + window.Store.MDBackend = true; + } }; exports.LoadUtils = () => { From 7d672078cd6370001134bc19d09386344cba9c29 Mon Sep 17 00:00:00 2001 From: Pedro Lopez Date: Wed, 26 Oct 2022 22:44:05 -0400 Subject: [PATCH 2/5] chore: mark version v1.18.1 --- docs/Base.html | 6 +++--- docs/BaseAuthStrategy.html | 6 +++--- docs/BusinessContact.html | 6 +++--- docs/Buttons.html | 6 +++--- docs/Call.html | 6 +++--- docs/Chat.html | 6 +++--- docs/Client.html | 6 +++--- docs/Client.js.html | 6 +++--- 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/LegacySessionAuth.html | 6 +++--- docs/List.html | 6 +++--- docs/LocalAuth.html | 6 +++--- docs/Location.html | 6 +++--- docs/Message.html | 6 +++--- docs/MessageMedia.html | 6 +++--- docs/NoAuth.html | 6 +++--- docs/Order.html | 6 +++--- docs/PrivateChat.html | 6 +++--- docs/PrivateContact.html | 6 +++--- docs/Product.html | 6 +++--- docs/Reaction.html | 6 +++--- docs/RemoteAuth.html | 6 +++--- docs/Util.html | 6 +++--- docs/authStrategies_BaseAuthStrategy.js.html | 6 +++--- docs/authStrategies_LegacySessionAuth.js.html | 6 +++--- docs/authStrategies_LocalAuth.js.html | 6 +++--- docs/authStrategies_NoAuth.js.html | 6 +++--- docs/authStrategies_RemoteAuth.js.html | 6 +++--- docs/global.html | 6 +++--- docs/index.html | 8 ++++---- docs/structures_Base.js.html | 6 +++--- docs/structures_BusinessContact.js.html | 6 +++--- docs/structures_Buttons.js.html | 6 +++--- docs/structures_Call.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_List.js.html | 6 +++--- docs/structures_Location.js.html | 6 +++--- docs/structures_Message.js.html | 6 +++--- docs/structures_MessageMedia.js.html | 6 +++--- docs/structures_Order.js.html | 6 +++--- docs/structures_Payment.js.html | 6 +++--- docs/structures_PrivateChat.js.html | 6 +++--- docs/structures_PrivateContact.js.html | 6 +++--- docs/structures_Product.js.html | 6 +++--- docs/structures_ProductMetadata.js.html | 6 +++--- docs/structures_Reaction.js.html | 6 +++--- docs/util_Constants.js.html | 6 +++--- docs/util_InterfaceController.js.html | 6 +++--- docs/util_Util.js.html | 6 +++--- package.json | 2 +- 60 files changed, 179 insertions(+), 179 deletions(-) diff --git a/docs/Base.html b/docs/Base.html index 8d659f4..77231a4 100644 --- a/docs/Base.html +++ b/docs/Base.html @@ -4,7 +4,7 @@ - whatsapp-web.js 1.18.0 » Class: Base + whatsapp-web.js 1.18.1 » Class: Base @@ -15,7 +15,7 @@ @@ -50,7 +50,7 @@
diff --git a/docs/BaseAuthStrategy.html b/docs/BaseAuthStrategy.html index f3b4668..5956368 100644 --- a/docs/BaseAuthStrategy.html +++ b/docs/BaseAuthStrategy.html @@ -4,7 +4,7 @@ - whatsapp-web.js 1.18.0 » Class: BaseAuthStrategy + whatsapp-web.js 1.18.1 » Class: BaseAuthStrategy @@ -15,7 +15,7 @@ @@ -50,7 +50,7 @@
diff --git a/docs/BusinessContact.html b/docs/BusinessContact.html index f82c6ee..eab9cd7 100644 --- a/docs/BusinessContact.html +++ b/docs/BusinessContact.html @@ -4,7 +4,7 @@ - whatsapp-web.js 1.18.0 » Class: BusinessContact + whatsapp-web.js 1.18.1 » Class: BusinessContact @@ -15,7 +15,7 @@ @@ -326,7 +326,7 @@
diff --git a/docs/Buttons.html b/docs/Buttons.html index e5c7e30..46e7b96 100644 --- a/docs/Buttons.html +++ b/docs/Buttons.html @@ -4,7 +4,7 @@ - whatsapp-web.js 1.18.0 » Class: Buttons + whatsapp-web.js 1.18.1 » Class: Buttons @@ -15,7 +15,7 @@ @@ -234,7 +234,7 @@ Returns: [{ buttonId:'customId',buttonText:{'displayText':&#
diff --git a/docs/Call.html b/docs/Call.html index 7c80fc9..3388ab3 100644 --- a/docs/Call.html +++ b/docs/Call.html @@ -4,7 +4,7 @@ - whatsapp-web.js 1.18.0 » Class: Call + whatsapp-web.js 1.18.1 » Class: Call @@ -15,7 +15,7 @@ @@ -144,7 +144,7 @@
diff --git a/docs/Chat.html b/docs/Chat.html index eebcf58..df3f8a5 100644 --- a/docs/Chat.html +++ b/docs/Chat.html @@ -4,7 +4,7 @@ - whatsapp-web.js 1.18.0 » Class: Chat + whatsapp-web.js 1.18.1 » Class: Chat @@ -15,7 +15,7 @@ @@ -497,7 +497,7 @@
diff --git a/docs/Client.html b/docs/Client.html index 24b52a0..a720860 100644 --- a/docs/Client.html +++ b/docs/Client.html @@ -4,7 +4,7 @@ - whatsapp-web.js 1.18.0 » Class: Client + whatsapp-web.js 1.18.1 » Class: Client @@ -15,7 +15,7 @@ @@ -2486,7 +2486,7 @@
diff --git a/docs/Client.js.html b/docs/Client.js.html index c39799f..c3d648a 100644 --- a/docs/Client.js.html +++ b/docs/Client.js.html @@ -4,7 +4,7 @@ - whatsapp-web.js 1.18.0 » Source: Client.js + whatsapp-web.js 1.18.1 » Source: Client.js @@ -15,7 +15,7 @@ @@ -1224,7 +1224,7 @@ module.exports = Client;
diff --git a/docs/ClientInfo.html b/docs/ClientInfo.html index 064991c..773e469 100644 --- a/docs/ClientInfo.html +++ b/docs/ClientInfo.html @@ -4,7 +4,7 @@ - whatsapp-web.js 1.18.0 » Class: ClientInfo + whatsapp-web.js 1.18.1 » Class: ClientInfo @@ -15,7 +15,7 @@ @@ -242,7 +242,7 @@
diff --git a/docs/Contact.html b/docs/Contact.html index 4594061..7434e19 100644 --- a/docs/Contact.html +++ b/docs/Contact.html @@ -4,7 +4,7 @@ - whatsapp-web.js 1.18.0 » Class: Contact + whatsapp-web.js 1.18.1 » Class: Contact @@ -15,7 +15,7 @@ @@ -293,7 +293,7 @@
diff --git a/docs/GroupChat.html b/docs/GroupChat.html index a39e454..66229e3 100644 --- a/docs/GroupChat.html +++ b/docs/GroupChat.html @@ -4,7 +4,7 @@ - whatsapp-web.js 1.18.0 » Class: GroupChat + whatsapp-web.js 1.18.1 » Class: GroupChat @@ -15,7 +15,7 @@ @@ -941,7 +941,7 @@
diff --git a/docs/GroupNotification.html b/docs/GroupNotification.html index eb9ce7c..9e141e3 100644 --- a/docs/GroupNotification.html +++ b/docs/GroupNotification.html @@ -4,7 +4,7 @@ - whatsapp-web.js 1.18.0 » Class: GroupNotification + whatsapp-web.js 1.18.1 » Class: GroupNotification @@ -15,7 +15,7 @@ @@ -233,7 +233,7 @@
diff --git a/docs/InterfaceController.html b/docs/InterfaceController.html index 707aee2..ae94045 100644 --- a/docs/InterfaceController.html +++ b/docs/InterfaceController.html @@ -4,7 +4,7 @@ - whatsapp-web.js 1.18.0 » Class: InterfaceController + whatsapp-web.js 1.18.1 » Class: InterfaceController @@ -15,7 +15,7 @@ @@ -382,7 +382,7 @@
diff --git a/docs/Label.html b/docs/Label.html index ab642e9..dd34709 100644 --- a/docs/Label.html +++ b/docs/Label.html @@ -4,7 +4,7 @@ - whatsapp-web.js 1.18.0 » Class: Label + whatsapp-web.js 1.18.1 » Class: Label @@ -15,7 +15,7 @@ @@ -163,7 +163,7 @@
diff --git a/docs/LegacySessionAuth.html b/docs/LegacySessionAuth.html index cc1aedb..bcf1a99 100644 --- a/docs/LegacySessionAuth.html +++ b/docs/LegacySessionAuth.html @@ -4,7 +4,7 @@ - whatsapp-web.js 1.18.0 » Class: LegacySessionAuth + whatsapp-web.js 1.18.1 » Class: LegacySessionAuth @@ -15,7 +15,7 @@ @@ -173,7 +173,7 @@
diff --git a/docs/List.html b/docs/List.html index dce13cf..7e25526 100644 --- a/docs/List.html +++ b/docs/List.html @@ -4,7 +4,7 @@ - whatsapp-web.js 1.18.0 » Class: List + whatsapp-web.js 1.18.1 » Class: List @@ -15,7 +15,7 @@ @@ -256,7 +256,7 @@ Returns: [{'title':'sectionTitle','rows':[{'r
diff --git a/docs/LocalAuth.html b/docs/LocalAuth.html index dbf9ed2..cabdefc 100644 --- a/docs/LocalAuth.html +++ b/docs/LocalAuth.html @@ -4,7 +4,7 @@ - whatsapp-web.js 1.18.0 » Class: LocalAuth + whatsapp-web.js 1.18.1 » Class: LocalAuth @@ -15,7 +15,7 @@ @@ -120,7 +120,7 @@
diff --git a/docs/Location.html b/docs/Location.html index cfb20a0..838a1a6 100644 --- a/docs/Location.html +++ b/docs/Location.html @@ -4,7 +4,7 @@ - whatsapp-web.js 1.18.0 » Class: Location + whatsapp-web.js 1.18.1 » Class: Location @@ -15,7 +15,7 @@ @@ -149,7 +149,7 @@
diff --git a/docs/Message.html b/docs/Message.html index 04e7b38..b3b00ce 100644 --- a/docs/Message.html +++ b/docs/Message.html @@ -4,7 +4,7 @@ - whatsapp-web.js 1.18.0 » Class: Message + whatsapp-web.js 1.18.1 » Class: Message @@ -15,7 +15,7 @@ @@ -650,7 +650,7 @@
diff --git a/docs/MessageMedia.html b/docs/MessageMedia.html index 1dc5e9a..867b40e 100644 --- a/docs/MessageMedia.html +++ b/docs/MessageMedia.html @@ -4,7 +4,7 @@ - whatsapp-web.js 1.18.0 » Class: MessageMedia + whatsapp-web.js 1.18.1 » Class: MessageMedia @@ -15,7 +15,7 @@ @@ -364,7 +364,7 @@
diff --git a/docs/NoAuth.html b/docs/NoAuth.html index 688a6ac..59fa31d 100644 --- a/docs/NoAuth.html +++ b/docs/NoAuth.html @@ -4,7 +4,7 @@ - whatsapp-web.js 1.18.0 » Class: NoAuth + whatsapp-web.js 1.18.1 » Class: NoAuth @@ -15,7 +15,7 @@ @@ -51,7 +51,7 @@
diff --git a/docs/Order.html b/docs/Order.html index 1cdda96..115a492 100644 --- a/docs/Order.html +++ b/docs/Order.html @@ -4,7 +4,7 @@ - whatsapp-web.js 1.18.0 » Class: Order + whatsapp-web.js 1.18.1 » Class: Order @@ -15,7 +15,7 @@ @@ -102,7 +102,7 @@
diff --git a/docs/PrivateChat.html b/docs/PrivateChat.html index 1922966..5ed58ec 100644 --- a/docs/PrivateChat.html +++ b/docs/PrivateChat.html @@ -4,7 +4,7 @@ - whatsapp-web.js 1.18.0 » Class: PrivateChat + whatsapp-web.js 1.18.1 » Class: PrivateChat @@ -15,7 +15,7 @@ @@ -533,7 +533,7 @@
diff --git a/docs/PrivateContact.html b/docs/PrivateContact.html index b5257e0..965ec03 100644 --- a/docs/PrivateContact.html +++ b/docs/PrivateContact.html @@ -4,7 +4,7 @@ - whatsapp-web.js 1.18.0 » Class: PrivateContact + whatsapp-web.js 1.18.1 » Class: PrivateContact @@ -15,7 +15,7 @@ @@ -319,7 +319,7 @@
diff --git a/docs/Product.html b/docs/Product.html index 3f595d3..efd382c 100644 --- a/docs/Product.html +++ b/docs/Product.html @@ -4,7 +4,7 @@ - whatsapp-web.js 1.18.0 » Class: Product + whatsapp-web.js 1.18.1 » Class: Product @@ -15,7 +15,7 @@ @@ -127,7 +127,7 @@
diff --git a/docs/Reaction.html b/docs/Reaction.html index b291413..ee5855e 100644 --- a/docs/Reaction.html +++ b/docs/Reaction.html @@ -4,7 +4,7 @@ - whatsapp-web.js 1.18.0 » Class: Reaction + whatsapp-web.js 1.18.1 » Class: Reaction @@ -15,7 +15,7 @@ @@ -144,7 +144,7 @@
diff --git a/docs/RemoteAuth.html b/docs/RemoteAuth.html index 9a028bc..136674b 100644 --- a/docs/RemoteAuth.html +++ b/docs/RemoteAuth.html @@ -4,7 +4,7 @@ - whatsapp-web.js 1.18.0 » Class: RemoteAuth + whatsapp-web.js 1.18.1 » Class: RemoteAuth @@ -15,7 +15,7 @@ @@ -148,7 +148,7 @@
diff --git a/docs/Util.html b/docs/Util.html index 86ed99c..b308c26 100644 --- a/docs/Util.html +++ b/docs/Util.html @@ -4,7 +4,7 @@ - whatsapp-web.js 1.18.0 » Class: Util + whatsapp-web.js 1.18.1 » Class: Util @@ -15,7 +15,7 @@ @@ -243,7 +243,7 @@
diff --git a/docs/authStrategies_BaseAuthStrategy.js.html b/docs/authStrategies_BaseAuthStrategy.js.html index 0912654..3900d77 100644 --- a/docs/authStrategies_BaseAuthStrategy.js.html +++ b/docs/authStrategies_BaseAuthStrategy.js.html @@ -4,7 +4,7 @@ - whatsapp-web.js 1.18.0 » Source: authStrategies/BaseAuthStrategy.js + whatsapp-web.js 1.18.1 » Source: authStrategies/BaseAuthStrategy.js @@ -15,7 +15,7 @@ @@ -65,7 +65,7 @@ module.exports = BaseAuthStrategy;
diff --git a/docs/authStrategies_LegacySessionAuth.js.html b/docs/authStrategies_LegacySessionAuth.js.html index 344cfbf..ff903be 100644 --- a/docs/authStrategies_LegacySessionAuth.js.html +++ b/docs/authStrategies_LegacySessionAuth.js.html @@ -4,7 +4,7 @@ - whatsapp-web.js 1.18.0 » Source: authStrategies/LegacySessionAuth.js + whatsapp-web.js 1.18.1 » Source: authStrategies/LegacySessionAuth.js @@ -15,7 +15,7 @@ @@ -111,7 +111,7 @@ module.exports = LegacySessionAuth;
diff --git a/docs/authStrategies_LocalAuth.js.html b/docs/authStrategies_LocalAuth.js.html index 83cf47b..040b0c4 100644 --- a/docs/authStrategies_LocalAuth.js.html +++ b/docs/authStrategies_LocalAuth.js.html @@ -4,7 +4,7 @@ - whatsapp-web.js 1.18.0 » Source: authStrategies/LocalAuth.js + whatsapp-web.js 1.18.1 » Source: authStrategies/LocalAuth.js @@ -15,7 +15,7 @@ @@ -91,7 +91,7 @@ module.exports = LocalAuth;
diff --git a/docs/authStrategies_NoAuth.js.html b/docs/authStrategies_NoAuth.js.html index f6ee7a4..2f54349 100644 --- a/docs/authStrategies_NoAuth.js.html +++ b/docs/authStrategies_NoAuth.js.html @@ -4,7 +4,7 @@ - whatsapp-web.js 1.18.0 » Source: authStrategies/NoAuth.js + whatsapp-web.js 1.18.1 » Source: authStrategies/NoAuth.js @@ -15,7 +15,7 @@ @@ -50,7 +50,7 @@ module.exports = NoAuth;
diff --git a/docs/authStrategies_RemoteAuth.js.html b/docs/authStrategies_RemoteAuth.js.html index 63709bd..8bdd2e7 100644 --- a/docs/authStrategies_RemoteAuth.js.html +++ b/docs/authStrategies_RemoteAuth.js.html @@ -4,7 +4,7 @@ - whatsapp-web.js 1.18.0 » Source: authStrategies/RemoteAuth.js + whatsapp-web.js 1.18.1 » Source: authStrategies/RemoteAuth.js @@ -15,7 +15,7 @@ @@ -243,7 +243,7 @@ module.exports = RemoteAuth;
diff --git a/docs/global.html b/docs/global.html index 89c6ad9..16a70a0 100644 --- a/docs/global.html +++ b/docs/global.html @@ -4,7 +4,7 @@ - whatsapp-web.js 1.18.0 » Globals + whatsapp-web.js 1.18.1 » Globals @@ -15,7 +15,7 @@ @@ -2019,7 +2019,7 @@
diff --git a/docs/index.html b/docs/index.html index 3e2c8fd..ca3c5c0 100644 --- a/docs/index.html +++ b/docs/index.html @@ -4,7 +4,7 @@ - whatsapp-web.js 1.18.0 » Home + whatsapp-web.js 1.18.1 » Home @@ -15,7 +15,7 @@ @@ -27,7 +27,7 @@
@@ -3276,7 +3276,7 @@ client.initialize();
diff --git a/docs/structures_Base.js.html b/docs/structures_Base.js.html index 65d6ae7..e9df202 100644 --- a/docs/structures_Base.js.html +++ b/docs/structures_Base.js.html @@ -4,7 +4,7 @@ - whatsapp-web.js 1.18.0 » Source: structures/Base.js + whatsapp-web.js 1.18.1 » 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 c6740cb..cc6b32b 100644 --- a/docs/structures_BusinessContact.js.html +++ b/docs/structures_BusinessContact.js.html @@ -4,7 +4,7 @@ - whatsapp-web.js 1.18.0 » Source: structures/BusinessContact.js + whatsapp-web.js 1.18.1 » Source: structures/BusinessContact.js @@ -15,7 +15,7 @@ @@ -59,7 +59,7 @@ module.exports = BusinessContact;
diff --git a/docs/structures_Buttons.js.html b/docs/structures_Buttons.js.html index 8be1944..02e405b 100644 --- a/docs/structures_Buttons.js.html +++ b/docs/structures_Buttons.js.html @@ -4,7 +4,7 @@ - whatsapp-web.js 1.18.0 » Source: structures/Buttons.js + whatsapp-web.js 1.18.1 » Source: structures/Buttons.js @@ -15,7 +15,7 @@ @@ -120,7 +120,7 @@ module.exports = Buttons;
diff --git a/docs/structures_Call.js.html b/docs/structures_Call.js.html index 81cb49b..00ee9c0 100644 --- a/docs/structures_Call.js.html +++ b/docs/structures_Call.js.html @@ -4,7 +4,7 @@ - whatsapp-web.js 1.18.0 » Source: structures/Call.js + whatsapp-web.js 1.18.1 » Source: structures/Call.js @@ -15,7 +15,7 @@ @@ -106,7 +106,7 @@ module.exports = Call;
diff --git a/docs/structures_Chat.js.html b/docs/structures_Chat.js.html index 5521da6..f8c0561 100644 --- a/docs/structures_Chat.js.html +++ b/docs/structures_Chat.js.html @@ -4,7 +4,7 @@ - whatsapp-web.js 1.18.0 » Source: structures/Chat.js + whatsapp-web.js 1.18.1 » Source: structures/Chat.js @@ -15,7 +15,7 @@ @@ -299,7 +299,7 @@ module.exports = Chat;
diff --git a/docs/structures_ClientInfo.js.html b/docs/structures_ClientInfo.js.html index f591d3d..f75a6d6 100644 --- a/docs/structures_ClientInfo.js.html +++ b/docs/structures_ClientInfo.js.html @@ -4,7 +4,7 @@ - whatsapp-web.js 1.18.0 » Source: structures/ClientInfo.js + whatsapp-web.js 1.18.1 » Source: structures/ClientInfo.js @@ -15,7 +15,7 @@ @@ -109,7 +109,7 @@ module.exports = ClientInfo;
diff --git a/docs/structures_Contact.js.html b/docs/structures_Contact.js.html index 9280f80..043f0ca 100644 --- a/docs/structures_Contact.js.html +++ b/docs/structures_Contact.js.html @@ -4,7 +4,7 @@ - whatsapp-web.js 1.18.0 » Source: structures/Contact.js + whatsapp-web.js 1.18.1 » Source: structures/Contact.js @@ -15,7 +15,7 @@ @@ -245,7 +245,7 @@ module.exports = Contact;
diff --git a/docs/structures_GroupChat.js.html b/docs/structures_GroupChat.js.html index a3043e0..fb2afb1 100644 --- a/docs/structures_GroupChat.js.html +++ b/docs/structures_GroupChat.js.html @@ -4,7 +4,7 @@ - whatsapp-web.js 1.18.0 » Source: structures/GroupChat.js + whatsapp-web.js 1.18.1 » Source: structures/GroupChat.js @@ -15,7 +15,7 @@ @@ -272,7 +272,7 @@ module.exports = GroupChat;
diff --git a/docs/structures_GroupNotification.js.html b/docs/structures_GroupNotification.js.html index dcc45b4..ad90402 100644 --- a/docs/structures_GroupNotification.js.html +++ b/docs/structures_GroupNotification.js.html @@ -4,7 +4,7 @@ - whatsapp-web.js 1.18.0 » Source: structures/GroupNotification.js + whatsapp-web.js 1.18.1 » 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 8edcac8..f0c922b 100644 --- a/docs/structures_Label.js.html +++ b/docs/structures_Label.js.html @@ -4,7 +4,7 @@ - whatsapp-web.js 1.18.0 » Source: structures/Label.js + whatsapp-web.js 1.18.1 » Source: structures/Label.js @@ -15,7 +15,7 @@ @@ -88,7 +88,7 @@ module.exports = Label;
diff --git a/docs/structures_List.js.html b/docs/structures_List.js.html index 85ada9e..baf1f16 100644 --- a/docs/structures_List.js.html +++ b/docs/structures_List.js.html @@ -4,7 +4,7 @@ - whatsapp-web.js 1.18.0 » Source: structures/List.js + whatsapp-web.js 1.18.1 » Source: structures/List.js @@ -15,7 +15,7 @@ @@ -118,7 +118,7 @@ module.exports = List;
diff --git a/docs/structures_Location.js.html b/docs/structures_Location.js.html index 788874f..4a4cf80 100644 --- a/docs/structures_Location.js.html +++ b/docs/structures_Location.js.html @@ -4,7 +4,7 @@ - whatsapp-web.js 1.18.0 » Source: structures/Location.js + whatsapp-web.js 1.18.1 » 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 193ada0..9853f26 100644 --- a/docs/structures_Message.js.html +++ b/docs/structures_Message.js.html @@ -4,7 +4,7 @@ - whatsapp-web.js 1.18.0 » Source: structures/Message.js + whatsapp-web.js 1.18.1 » Source: structures/Message.js @@ -15,7 +15,7 @@ @@ -569,7 +569,7 @@ module.exports = Message;
diff --git a/docs/structures_MessageMedia.js.html b/docs/structures_MessageMedia.js.html index 07dc863..f4e96a7 100644 --- a/docs/structures_MessageMedia.js.html +++ b/docs/structures_MessageMedia.js.html @@ -4,7 +4,7 @@ - whatsapp-web.js 1.18.0 » Source: structures/MessageMedia.js + whatsapp-web.js 1.18.1 » Source: structures/MessageMedia.js @@ -15,7 +15,7 @@ @@ -150,7 +150,7 @@ module.exports = MessageMedia;
diff --git a/docs/structures_Order.js.html b/docs/structures_Order.js.html index e2b2716..3ab31a3 100644 --- a/docs/structures_Order.js.html +++ b/docs/structures_Order.js.html @@ -4,7 +4,7 @@ - whatsapp-web.js 1.18.0 » Source: structures/Order.js + whatsapp-web.js 1.18.1 » Source: structures/Order.js @@ -15,7 +15,7 @@ @@ -90,7 +90,7 @@ module.exports = Order;
diff --git a/docs/structures_Payment.js.html b/docs/structures_Payment.js.html index bb84d74..282f375 100644 --- a/docs/structures_Payment.js.html +++ b/docs/structures_Payment.js.html @@ -4,7 +4,7 @@ - whatsapp-web.js 1.18.0 » Source: structures/Payment.js + whatsapp-web.js 1.18.1 » Source: structures/Payment.js @@ -15,7 +15,7 @@ @@ -118,7 +118,7 @@ module.exports = Payment;
diff --git a/docs/structures_PrivateChat.js.html b/docs/structures_PrivateChat.js.html index 100c403..10e6230 100644 --- a/docs/structures_PrivateChat.js.html +++ b/docs/structures_PrivateChat.js.html @@ -4,7 +4,7 @@ - whatsapp-web.js 1.18.0 » Source: structures/PrivateChat.js + whatsapp-web.js 1.18.1 » 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 ebea085..2550477 100644 --- a/docs/structures_PrivateContact.js.html +++ b/docs/structures_PrivateContact.js.html @@ -4,7 +4,7 @@ - whatsapp-web.js 1.18.0 » Source: structures/PrivateContact.js + whatsapp-web.js 1.18.1 » Source: structures/PrivateContact.js @@ -15,7 +15,7 @@ @@ -51,7 +51,7 @@ module.exports = PrivateContact;
diff --git a/docs/structures_Product.js.html b/docs/structures_Product.js.html index 7fccd8a..19e2bee 100644 --- a/docs/structures_Product.js.html +++ b/docs/structures_Product.js.html @@ -4,7 +4,7 @@ - whatsapp-web.js 1.18.0 » Source: structures/Product.js + whatsapp-web.js 1.18.1 » Source: structures/Product.js @@ -15,7 +15,7 @@ @@ -106,7 +106,7 @@ module.exports = Product;
diff --git a/docs/structures_ProductMetadata.js.html b/docs/structures_ProductMetadata.js.html index 62e786b..2494244 100644 --- a/docs/structures_ProductMetadata.js.html +++ b/docs/structures_ProductMetadata.js.html @@ -4,7 +4,7 @@ - whatsapp-web.js 1.18.0 » Source: structures/ProductMetadata.js + whatsapp-web.js 1.18.1 » Source: structures/ProductMetadata.js @@ -15,7 +15,7 @@ @@ -63,7 +63,7 @@ module.exports = ProductMetadata;
diff --git a/docs/structures_Reaction.js.html b/docs/structures_Reaction.js.html index bcdc65e..d5e6817 100644 --- a/docs/structures_Reaction.js.html +++ b/docs/structures_Reaction.js.html @@ -4,7 +4,7 @@ - whatsapp-web.js 1.18.0 » Source: structures/Reaction.js + whatsapp-web.js 1.18.1 » Source: structures/Reaction.js @@ -15,7 +15,7 @@ @@ -107,7 +107,7 @@ module.exports = Reaction;
diff --git a/docs/util_Constants.js.html b/docs/util_Constants.js.html index 84a5d6f..6267643 100644 --- a/docs/util_Constants.js.html +++ b/docs/util_Constants.js.html @@ -4,7 +4,7 @@ - whatsapp-web.js 1.18.0 » Source: util/Constants.js + whatsapp-web.js 1.18.1 » Source: util/Constants.js @@ -15,7 +15,7 @@ @@ -200,7 +200,7 @@ exports.MessageAck = {
diff --git a/docs/util_InterfaceController.js.html b/docs/util_InterfaceController.js.html index a036bd6..775d9fa 100644 --- a/docs/util_InterfaceController.js.html +++ b/docs/util_InterfaceController.js.html @@ -4,7 +4,7 @@ - whatsapp-web.js 1.18.0 » Source: util/InterfaceController.js + whatsapp-web.js 1.18.1 » Source: util/InterfaceController.js @@ -15,7 +15,7 @@ @@ -160,7 +160,7 @@ module.exports = InterfaceController;
diff --git a/docs/util_Util.js.html b/docs/util_Util.js.html index 6906bf1..22e2dcb 100644 --- a/docs/util_Util.js.html +++ b/docs/util_Util.js.html @@ -4,7 +4,7 @@ - whatsapp-web.js 1.18.0 » Source: util/Util.js + whatsapp-web.js 1.18.1 » Source: util/Util.js @@ -15,7 +15,7 @@ @@ -225,7 +225,7 @@ module.exports = Util;
diff --git a/package.json b/package.json index e7e47ae..6566140 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "whatsapp-web.js", - "version": "1.18.0", + "version": "1.18.1", "description": "Library for interacting with the WhatsApp Web API ", "main": "./index.js", "typings": "./index.d.ts", From 7bb7f13f07c8c7fac044c6c75bd180eabebd78b0 Mon Sep 17 00:00:00 2001 From: Pedro Lopez Date: Wed, 26 Oct 2022 22:45:05 -0400 Subject: [PATCH 3/5] bump supported version --- README.md | 2 +- tools/version-checker/.version | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 89ff5e5..c26079d 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,4 @@ -[![npm](https://img.shields.io/npm/v/whatsapp-web.js.svg)](https://www.npmjs.com/package/whatsapp-web.js) [![Depfu](https://badges.depfu.com/badges/4a65a0de96ece65fdf39e294e0c8dcba/overview.svg)](https://depfu.com/github/pedroslopez/whatsapp-web.js?project_id=9765) ![WhatsApp_Web 2.2240.7](https://img.shields.io/badge/WhatsApp_Web-2.2240.7-brightgreen.svg) [![Discord Chat](https://img.shields.io/discord/698610475432411196.svg?logo=discord)](https://discord.gg/H7DqQs4) +[![npm](https://img.shields.io/npm/v/whatsapp-web.js.svg)](https://www.npmjs.com/package/whatsapp-web.js) [![Depfu](https://badges.depfu.com/badges/4a65a0de96ece65fdf39e294e0c8dcba/overview.svg)](https://depfu.com/github/pedroslopez/whatsapp-web.js?project_id=9765) ![WhatsApp_Web 2.2241.6](https://img.shields.io/badge/WhatsApp_Web-2.2241.6-brightgreen.svg) [![Discord Chat](https://img.shields.io/discord/698610475432411196.svg?logo=discord)](https://discord.gg/H7DqQs4) # whatsapp-web.js A WhatsApp API client that connects through the WhatsApp Web browser app diff --git a/tools/version-checker/.version b/tools/version-checker/.version index f3c9151..0b7f6f6 100644 --- a/tools/version-checker/.version +++ b/tools/version-checker/.version @@ -1 +1 @@ -2.2240.7 \ No newline at end of file +2.2241.6 \ No newline at end of file From 9981723505bfab7c2a5e109eaa7ba814d0205158 Mon Sep 17 00:00:00 2001 From: "Pedro S. Lopez" Date: Wed, 26 Oct 2022 23:32:06 -0400 Subject: [PATCH 4/5] fix: message replies compatible with WhatsApp Web v2.2241.6 (#1765) * fix message replies * fix up some tests --- src/util/Injected.js | 9 ++++++++- tests/client.js | 5 ++--- tests/structures/message.js | 6 +++++- 3 files changed, 15 insertions(+), 5 deletions(-) diff --git a/src/util/Injected.js b/src/util/Injected.js index 4184de8..c513373 100644 --- a/src/util/Injected.js +++ b/src/util/Injected.js @@ -50,6 +50,7 @@ exports.ExposeStore = (moduleRaidStr) => { window.Store.sendReactionToMsg = window.mR.findModule('sendReactionToMsg')[0].sendReactionToMsg; window.Store.createOrUpdateReactionsModule = window.mR.findModule('createOrUpdateReactions')[0]; window.Store.EphemeralFields = window.mR.findModule('getEphemeralFields')[0]; + window.Store.ReplyUtils = window.mR.findModule('canReplyMsg').length > 0 && window.mR.findModule('canReplyMsg')[0]; window.Store.StickerTools = { ...window.mR.findModule('toWebpSticker')[0], ...window.mR.findModule('addWebpMetadata')[0] @@ -116,7 +117,13 @@ exports.LoadUtils = () => { let quotedMsgOptions = {}; if (options.quotedMessageId) { let quotedMessage = window.Store.Msg.get(options.quotedMessageId); - if (quotedMessage.canReply()) { + + // TODO remove .canReply() once all clients are updated to >= v2.2241.6 + const canReply = window.Store.ReplyUtils ? + window.Store.ReplyUtils.canReplyMsg(quotedMessage.unsafe()) : + quotedMessage.canReply(); + + if (canReply) { quotedMsgOptions = quotedMessage.msgContextInfo(chat); } delete options.quotedMessageId; diff --git a/tests/client.js b/tests/client.js index 55f5334..0118c20 100644 --- a/tests/client.js +++ b/tests/client.js @@ -98,7 +98,7 @@ describe('Client', function() { await helper.sleep(20000); expect(callback.called).to.equal(true); - expect(callback.args[0][0]).to.have.lengthOf(152); + expect(callback.args[0][0]).to.have.length.greaterThanOrEqual(152); await client.destroy(); }); @@ -224,7 +224,7 @@ describe('Client', function() { expect(authFailCallback.called).to.equal(true); expect(qrCallback.called).to.equal(true); - expect(qrCallback.args[0][0]).to.have.lengthOf(152); + expect(qrCallback.args[0][0]).to.have.length.greaterThanOrEqual(152); await client.destroy(); }); @@ -346,7 +346,6 @@ describe('Client', function() { 'UserConstructor', 'VCard', 'Validators', - 'Wap', 'WidFactory', 'findCommonGroups', 'sendReactionToMsg', diff --git a/tests/structures/message.js b/tests/structures/message.js index 7a9749d..0f87e53 100644 --- a/tests/structures/message.js +++ b/tests/structures/message.js @@ -66,6 +66,8 @@ describe('Message', function () { expect(message.isStarred).to.equal(false); await message.star(); + await helper.sleep(1000); + // reload and check await message.reload(); expect(message.isStarred).to.equal(true); @@ -75,6 +77,8 @@ describe('Message', function () { expect(message.isStarred).to.equal(true); await message.unstar(); + await helper.sleep(1000); + // reload and check await message.reload(); expect(message.isStarred).to.equal(false); @@ -85,7 +89,7 @@ describe('Message', function () { it('can delete a message for me', async function () { await message.delete(); - await helper.sleep(1000); + await helper.sleep(5000); expect(await message.reload()).to.equal(null); }); From 6f7c5c2dd9a617f84dd9ba9fc61b6bd441816317 Mon Sep 17 00:00:00 2001 From: Pedro Lopez Date: Wed, 26 Oct 2022 23:32:56 -0400 Subject: [PATCH 5/5] chore: mark version v1.18.2 --- docs/Base.html | 4 ++-- docs/BaseAuthStrategy.html | 4 ++-- docs/BusinessContact.html | 4 ++-- docs/Buttons.html | 4 ++-- docs/Call.html | 4 ++-- docs/Chat.html | 4 ++-- docs/Client.html | 4 ++-- docs/Client.js.html | 4 ++-- docs/ClientInfo.html | 4 ++-- docs/Contact.html | 4 ++-- docs/GroupChat.html | 4 ++-- docs/GroupNotification.html | 4 ++-- docs/InterfaceController.html | 4 ++-- docs/Label.html | 4 ++-- docs/LegacySessionAuth.html | 4 ++-- docs/List.html | 4 ++-- docs/LocalAuth.html | 4 ++-- docs/Location.html | 4 ++-- docs/Message.html | 4 ++-- docs/MessageMedia.html | 4 ++-- docs/NoAuth.html | 4 ++-- docs/Order.html | 4 ++-- docs/PrivateChat.html | 4 ++-- docs/PrivateContact.html | 4 ++-- docs/Product.html | 4 ++-- docs/Reaction.html | 4 ++-- docs/RemoteAuth.html | 4 ++-- docs/Util.html | 4 ++-- docs/authStrategies_BaseAuthStrategy.js.html | 4 ++-- docs/authStrategies_LegacySessionAuth.js.html | 4 ++-- docs/authStrategies_LocalAuth.js.html | 4 ++-- docs/authStrategies_NoAuth.js.html | 4 ++-- docs/authStrategies_RemoteAuth.js.html | 4 ++-- docs/global.html | 4 ++-- docs/index.html | 8 ++++---- docs/structures_Base.js.html | 4 ++-- docs/structures_BusinessContact.js.html | 4 ++-- docs/structures_Buttons.js.html | 4 ++-- docs/structures_Call.js.html | 4 ++-- docs/structures_Chat.js.html | 4 ++-- docs/structures_ClientInfo.js.html | 4 ++-- docs/structures_Contact.js.html | 4 ++-- docs/structures_GroupChat.js.html | 4 ++-- docs/structures_GroupNotification.js.html | 4 ++-- docs/structures_Label.js.html | 4 ++-- docs/structures_List.js.html | 4 ++-- docs/structures_Location.js.html | 4 ++-- docs/structures_Message.js.html | 4 ++-- docs/structures_MessageMedia.js.html | 4 ++-- docs/structures_Order.js.html | 4 ++-- docs/structures_Payment.js.html | 4 ++-- docs/structures_PrivateChat.js.html | 4 ++-- docs/structures_PrivateContact.js.html | 4 ++-- docs/structures_Product.js.html | 4 ++-- docs/structures_ProductMetadata.js.html | 4 ++-- docs/structures_Reaction.js.html | 4 ++-- docs/util_Constants.js.html | 4 ++-- docs/util_InterfaceController.js.html | 4 ++-- docs/util_Util.js.html | 4 ++-- package.json | 2 +- 60 files changed, 121 insertions(+), 121 deletions(-) diff --git a/docs/Base.html b/docs/Base.html index 77231a4..cee5e70 100644 --- a/docs/Base.html +++ b/docs/Base.html @@ -4,7 +4,7 @@ - whatsapp-web.js 1.18.1 » Class: Base + whatsapp-web.js 1.18.2 » Class: Base @@ -15,7 +15,7 @@ diff --git a/docs/BaseAuthStrategy.html b/docs/BaseAuthStrategy.html index 5956368..8b6f33f 100644 --- a/docs/BaseAuthStrategy.html +++ b/docs/BaseAuthStrategy.html @@ -4,7 +4,7 @@ - whatsapp-web.js 1.18.1 » Class: BaseAuthStrategy + whatsapp-web.js 1.18.2 » Class: BaseAuthStrategy @@ -15,7 +15,7 @@ diff --git a/docs/BusinessContact.html b/docs/BusinessContact.html index eab9cd7..7980005 100644 --- a/docs/BusinessContact.html +++ b/docs/BusinessContact.html @@ -4,7 +4,7 @@ - whatsapp-web.js 1.18.1 » Class: BusinessContact + whatsapp-web.js 1.18.2 » Class: BusinessContact @@ -15,7 +15,7 @@ diff --git a/docs/Buttons.html b/docs/Buttons.html index 46e7b96..d6c2ce2 100644 --- a/docs/Buttons.html +++ b/docs/Buttons.html @@ -4,7 +4,7 @@ - whatsapp-web.js 1.18.1 » Class: Buttons + whatsapp-web.js 1.18.2 » Class: Buttons @@ -15,7 +15,7 @@ diff --git a/docs/Call.html b/docs/Call.html index 3388ab3..d92e969 100644 --- a/docs/Call.html +++ b/docs/Call.html @@ -4,7 +4,7 @@ - whatsapp-web.js 1.18.1 » Class: Call + whatsapp-web.js 1.18.2 » Class: Call @@ -15,7 +15,7 @@ diff --git a/docs/Chat.html b/docs/Chat.html index df3f8a5..93d56b4 100644 --- a/docs/Chat.html +++ b/docs/Chat.html @@ -4,7 +4,7 @@ - whatsapp-web.js 1.18.1 » Class: Chat + whatsapp-web.js 1.18.2 » Class: Chat @@ -15,7 +15,7 @@ diff --git a/docs/Client.html b/docs/Client.html index a720860..7e13c9b 100644 --- a/docs/Client.html +++ b/docs/Client.html @@ -4,7 +4,7 @@ - whatsapp-web.js 1.18.1 » Class: Client + whatsapp-web.js 1.18.2 » Class: Client @@ -15,7 +15,7 @@ diff --git a/docs/Client.js.html b/docs/Client.js.html index c3d648a..4045ce3 100644 --- a/docs/Client.js.html +++ b/docs/Client.js.html @@ -4,7 +4,7 @@ - whatsapp-web.js 1.18.1 » Source: Client.js + whatsapp-web.js 1.18.2 » Source: Client.js @@ -15,7 +15,7 @@ diff --git a/docs/ClientInfo.html b/docs/ClientInfo.html index 773e469..04c988e 100644 --- a/docs/ClientInfo.html +++ b/docs/ClientInfo.html @@ -4,7 +4,7 @@ - whatsapp-web.js 1.18.1 » Class: ClientInfo + whatsapp-web.js 1.18.2 » Class: ClientInfo @@ -15,7 +15,7 @@ diff --git a/docs/Contact.html b/docs/Contact.html index 7434e19..c4a20f8 100644 --- a/docs/Contact.html +++ b/docs/Contact.html @@ -4,7 +4,7 @@ - whatsapp-web.js 1.18.1 » Class: Contact + whatsapp-web.js 1.18.2 » Class: Contact @@ -15,7 +15,7 @@ diff --git a/docs/GroupChat.html b/docs/GroupChat.html index 66229e3..fbf63f4 100644 --- a/docs/GroupChat.html +++ b/docs/GroupChat.html @@ -4,7 +4,7 @@ - whatsapp-web.js 1.18.1 » Class: GroupChat + whatsapp-web.js 1.18.2 » Class: GroupChat @@ -15,7 +15,7 @@ diff --git a/docs/GroupNotification.html b/docs/GroupNotification.html index 9e141e3..a691193 100644 --- a/docs/GroupNotification.html +++ b/docs/GroupNotification.html @@ -4,7 +4,7 @@ - whatsapp-web.js 1.18.1 » Class: GroupNotification + whatsapp-web.js 1.18.2 » Class: GroupNotification @@ -15,7 +15,7 @@ diff --git a/docs/InterfaceController.html b/docs/InterfaceController.html index ae94045..c8992f0 100644 --- a/docs/InterfaceController.html +++ b/docs/InterfaceController.html @@ -4,7 +4,7 @@ - whatsapp-web.js 1.18.1 » Class: InterfaceController + whatsapp-web.js 1.18.2 » Class: InterfaceController @@ -15,7 +15,7 @@ diff --git a/docs/Label.html b/docs/Label.html index dd34709..a05b377 100644 --- a/docs/Label.html +++ b/docs/Label.html @@ -4,7 +4,7 @@ - whatsapp-web.js 1.18.1 » Class: Label + whatsapp-web.js 1.18.2 » Class: Label @@ -15,7 +15,7 @@ diff --git a/docs/LegacySessionAuth.html b/docs/LegacySessionAuth.html index bcf1a99..53bbfde 100644 --- a/docs/LegacySessionAuth.html +++ b/docs/LegacySessionAuth.html @@ -4,7 +4,7 @@ - whatsapp-web.js 1.18.1 » Class: LegacySessionAuth + whatsapp-web.js 1.18.2 » Class: LegacySessionAuth @@ -15,7 +15,7 @@ diff --git a/docs/List.html b/docs/List.html index 7e25526..6af1ec2 100644 --- a/docs/List.html +++ b/docs/List.html @@ -4,7 +4,7 @@ - whatsapp-web.js 1.18.1 » Class: List + whatsapp-web.js 1.18.2 » Class: List @@ -15,7 +15,7 @@ diff --git a/docs/LocalAuth.html b/docs/LocalAuth.html index cabdefc..305dc59 100644 --- a/docs/LocalAuth.html +++ b/docs/LocalAuth.html @@ -4,7 +4,7 @@ - whatsapp-web.js 1.18.1 » Class: LocalAuth + whatsapp-web.js 1.18.2 » Class: LocalAuth @@ -15,7 +15,7 @@ diff --git a/docs/Location.html b/docs/Location.html index 838a1a6..7d980a2 100644 --- a/docs/Location.html +++ b/docs/Location.html @@ -4,7 +4,7 @@ - whatsapp-web.js 1.18.1 » Class: Location + whatsapp-web.js 1.18.2 » Class: Location @@ -15,7 +15,7 @@ diff --git a/docs/Message.html b/docs/Message.html index b3b00ce..f9440d0 100644 --- a/docs/Message.html +++ b/docs/Message.html @@ -4,7 +4,7 @@ - whatsapp-web.js 1.18.1 » Class: Message + whatsapp-web.js 1.18.2 » Class: Message @@ -15,7 +15,7 @@ diff --git a/docs/MessageMedia.html b/docs/MessageMedia.html index 867b40e..353127f 100644 --- a/docs/MessageMedia.html +++ b/docs/MessageMedia.html @@ -4,7 +4,7 @@ - whatsapp-web.js 1.18.1 » Class: MessageMedia + whatsapp-web.js 1.18.2 » Class: MessageMedia @@ -15,7 +15,7 @@ diff --git a/docs/NoAuth.html b/docs/NoAuth.html index 59fa31d..62a8cae 100644 --- a/docs/NoAuth.html +++ b/docs/NoAuth.html @@ -4,7 +4,7 @@ - whatsapp-web.js 1.18.1 » Class: NoAuth + whatsapp-web.js 1.18.2 » Class: NoAuth @@ -15,7 +15,7 @@ diff --git a/docs/Order.html b/docs/Order.html index 115a492..1b62080 100644 --- a/docs/Order.html +++ b/docs/Order.html @@ -4,7 +4,7 @@ - whatsapp-web.js 1.18.1 » Class: Order + whatsapp-web.js 1.18.2 » Class: Order @@ -15,7 +15,7 @@ diff --git a/docs/PrivateChat.html b/docs/PrivateChat.html index 5ed58ec..f8a8298 100644 --- a/docs/PrivateChat.html +++ b/docs/PrivateChat.html @@ -4,7 +4,7 @@ - whatsapp-web.js 1.18.1 » Class: PrivateChat + whatsapp-web.js 1.18.2 » Class: PrivateChat @@ -15,7 +15,7 @@ diff --git a/docs/PrivateContact.html b/docs/PrivateContact.html index 965ec03..94d23ce 100644 --- a/docs/PrivateContact.html +++ b/docs/PrivateContact.html @@ -4,7 +4,7 @@ - whatsapp-web.js 1.18.1 » Class: PrivateContact + whatsapp-web.js 1.18.2 » Class: PrivateContact @@ -15,7 +15,7 @@ diff --git a/docs/Product.html b/docs/Product.html index efd382c..7dcbfbe 100644 --- a/docs/Product.html +++ b/docs/Product.html @@ -4,7 +4,7 @@ - whatsapp-web.js 1.18.1 » Class: Product + whatsapp-web.js 1.18.2 » Class: Product @@ -15,7 +15,7 @@ diff --git a/docs/Reaction.html b/docs/Reaction.html index ee5855e..4817db4 100644 --- a/docs/Reaction.html +++ b/docs/Reaction.html @@ -4,7 +4,7 @@ - whatsapp-web.js 1.18.1 » Class: Reaction + whatsapp-web.js 1.18.2 » Class: Reaction @@ -15,7 +15,7 @@ diff --git a/docs/RemoteAuth.html b/docs/RemoteAuth.html index 136674b..0d07031 100644 --- a/docs/RemoteAuth.html +++ b/docs/RemoteAuth.html @@ -4,7 +4,7 @@ - whatsapp-web.js 1.18.1 » Class: RemoteAuth + whatsapp-web.js 1.18.2 » Class: RemoteAuth @@ -15,7 +15,7 @@ diff --git a/docs/Util.html b/docs/Util.html index b308c26..0d78819 100644 --- a/docs/Util.html +++ b/docs/Util.html @@ -4,7 +4,7 @@ - whatsapp-web.js 1.18.1 » Class: Util + whatsapp-web.js 1.18.2 » Class: Util @@ -15,7 +15,7 @@ diff --git a/docs/authStrategies_BaseAuthStrategy.js.html b/docs/authStrategies_BaseAuthStrategy.js.html index 3900d77..992219b 100644 --- a/docs/authStrategies_BaseAuthStrategy.js.html +++ b/docs/authStrategies_BaseAuthStrategy.js.html @@ -4,7 +4,7 @@ - whatsapp-web.js 1.18.1 » Source: authStrategies/BaseAuthStrategy.js + whatsapp-web.js 1.18.2 » Source: authStrategies/BaseAuthStrategy.js @@ -15,7 +15,7 @@ diff --git a/docs/authStrategies_LegacySessionAuth.js.html b/docs/authStrategies_LegacySessionAuth.js.html index ff903be..d803985 100644 --- a/docs/authStrategies_LegacySessionAuth.js.html +++ b/docs/authStrategies_LegacySessionAuth.js.html @@ -4,7 +4,7 @@ - whatsapp-web.js 1.18.1 » Source: authStrategies/LegacySessionAuth.js + whatsapp-web.js 1.18.2 » Source: authStrategies/LegacySessionAuth.js @@ -15,7 +15,7 @@ diff --git a/docs/authStrategies_LocalAuth.js.html b/docs/authStrategies_LocalAuth.js.html index 040b0c4..6a8254a 100644 --- a/docs/authStrategies_LocalAuth.js.html +++ b/docs/authStrategies_LocalAuth.js.html @@ -4,7 +4,7 @@ - whatsapp-web.js 1.18.1 » Source: authStrategies/LocalAuth.js + whatsapp-web.js 1.18.2 » Source: authStrategies/LocalAuth.js @@ -15,7 +15,7 @@ diff --git a/docs/authStrategies_NoAuth.js.html b/docs/authStrategies_NoAuth.js.html index 2f54349..a9aab1d 100644 --- a/docs/authStrategies_NoAuth.js.html +++ b/docs/authStrategies_NoAuth.js.html @@ -4,7 +4,7 @@ - whatsapp-web.js 1.18.1 » Source: authStrategies/NoAuth.js + whatsapp-web.js 1.18.2 » Source: authStrategies/NoAuth.js @@ -15,7 +15,7 @@ diff --git a/docs/authStrategies_RemoteAuth.js.html b/docs/authStrategies_RemoteAuth.js.html index 8bdd2e7..16953eb 100644 --- a/docs/authStrategies_RemoteAuth.js.html +++ b/docs/authStrategies_RemoteAuth.js.html @@ -4,7 +4,7 @@ - whatsapp-web.js 1.18.1 » Source: authStrategies/RemoteAuth.js + whatsapp-web.js 1.18.2 » Source: authStrategies/RemoteAuth.js @@ -15,7 +15,7 @@ diff --git a/docs/global.html b/docs/global.html index 16a70a0..59cb73d 100644 --- a/docs/global.html +++ b/docs/global.html @@ -4,7 +4,7 @@ - whatsapp-web.js 1.18.1 » Globals + whatsapp-web.js 1.18.2 » Globals @@ -15,7 +15,7 @@ diff --git a/docs/index.html b/docs/index.html index ca3c5c0..032bf26 100644 --- a/docs/index.html +++ b/docs/index.html @@ -4,7 +4,7 @@ - whatsapp-web.js 1.18.1 » Home + whatsapp-web.js 1.18.2 » Home @@ -15,7 +15,7 @@ @@ -27,11 +27,11 @@
-

npm Depfu WhatsApp_Web 2.2240.7 Discord Chat

+

npm Depfu WhatsApp_Web 2.2241.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.

diff --git a/docs/structures_Base.js.html b/docs/structures_Base.js.html index e9df202..df20a92 100644 --- a/docs/structures_Base.js.html +++ b/docs/structures_Base.js.html @@ -4,7 +4,7 @@ - whatsapp-web.js 1.18.1 » Source: structures/Base.js + whatsapp-web.js 1.18.2 » Source: structures/Base.js @@ -15,7 +15,7 @@ diff --git a/docs/structures_BusinessContact.js.html b/docs/structures_BusinessContact.js.html index cc6b32b..90aaecc 100644 --- a/docs/structures_BusinessContact.js.html +++ b/docs/structures_BusinessContact.js.html @@ -4,7 +4,7 @@ - whatsapp-web.js 1.18.1 » Source: structures/BusinessContact.js + whatsapp-web.js 1.18.2 » Source: structures/BusinessContact.js @@ -15,7 +15,7 @@ diff --git a/docs/structures_Buttons.js.html b/docs/structures_Buttons.js.html index 02e405b..4699fde 100644 --- a/docs/structures_Buttons.js.html +++ b/docs/structures_Buttons.js.html @@ -4,7 +4,7 @@ - whatsapp-web.js 1.18.1 » Source: structures/Buttons.js + whatsapp-web.js 1.18.2 » Source: structures/Buttons.js @@ -15,7 +15,7 @@ diff --git a/docs/structures_Call.js.html b/docs/structures_Call.js.html index 00ee9c0..2118c5d 100644 --- a/docs/structures_Call.js.html +++ b/docs/structures_Call.js.html @@ -4,7 +4,7 @@ - whatsapp-web.js 1.18.1 » Source: structures/Call.js + whatsapp-web.js 1.18.2 » Source: structures/Call.js @@ -15,7 +15,7 @@ diff --git a/docs/structures_Chat.js.html b/docs/structures_Chat.js.html index f8c0561..96fe03d 100644 --- a/docs/structures_Chat.js.html +++ b/docs/structures_Chat.js.html @@ -4,7 +4,7 @@ - whatsapp-web.js 1.18.1 » Source: structures/Chat.js + whatsapp-web.js 1.18.2 » Source: structures/Chat.js @@ -15,7 +15,7 @@ diff --git a/docs/structures_ClientInfo.js.html b/docs/structures_ClientInfo.js.html index f75a6d6..71f9642 100644 --- a/docs/structures_ClientInfo.js.html +++ b/docs/structures_ClientInfo.js.html @@ -4,7 +4,7 @@ - whatsapp-web.js 1.18.1 » Source: structures/ClientInfo.js + whatsapp-web.js 1.18.2 » Source: structures/ClientInfo.js @@ -15,7 +15,7 @@ diff --git a/docs/structures_Contact.js.html b/docs/structures_Contact.js.html index 043f0ca..39cbc5f 100644 --- a/docs/structures_Contact.js.html +++ b/docs/structures_Contact.js.html @@ -4,7 +4,7 @@ - whatsapp-web.js 1.18.1 » Source: structures/Contact.js + whatsapp-web.js 1.18.2 » Source: structures/Contact.js @@ -15,7 +15,7 @@ diff --git a/docs/structures_GroupChat.js.html b/docs/structures_GroupChat.js.html index fb2afb1..1faee56 100644 --- a/docs/structures_GroupChat.js.html +++ b/docs/structures_GroupChat.js.html @@ -4,7 +4,7 @@ - whatsapp-web.js 1.18.1 » Source: structures/GroupChat.js + whatsapp-web.js 1.18.2 » Source: structures/GroupChat.js @@ -15,7 +15,7 @@ diff --git a/docs/structures_GroupNotification.js.html b/docs/structures_GroupNotification.js.html index ad90402..2941245 100644 --- a/docs/structures_GroupNotification.js.html +++ b/docs/structures_GroupNotification.js.html @@ -4,7 +4,7 @@ - whatsapp-web.js 1.18.1 » Source: structures/GroupNotification.js + whatsapp-web.js 1.18.2 » Source: structures/GroupNotification.js @@ -15,7 +15,7 @@ diff --git a/docs/structures_Label.js.html b/docs/structures_Label.js.html index f0c922b..5fc785d 100644 --- a/docs/structures_Label.js.html +++ b/docs/structures_Label.js.html @@ -4,7 +4,7 @@ - whatsapp-web.js 1.18.1 » Source: structures/Label.js + whatsapp-web.js 1.18.2 » Source: structures/Label.js @@ -15,7 +15,7 @@ diff --git a/docs/structures_List.js.html b/docs/structures_List.js.html index baf1f16..0e2c027 100644 --- a/docs/structures_List.js.html +++ b/docs/structures_List.js.html @@ -4,7 +4,7 @@ - whatsapp-web.js 1.18.1 » Source: structures/List.js + whatsapp-web.js 1.18.2 » Source: structures/List.js @@ -15,7 +15,7 @@ diff --git a/docs/structures_Location.js.html b/docs/structures_Location.js.html index 4a4cf80..353d381 100644 --- a/docs/structures_Location.js.html +++ b/docs/structures_Location.js.html @@ -4,7 +4,7 @@ - whatsapp-web.js 1.18.1 » Source: structures/Location.js + whatsapp-web.js 1.18.2 » Source: structures/Location.js @@ -15,7 +15,7 @@ diff --git a/docs/structures_Message.js.html b/docs/structures_Message.js.html index 9853f26..259bc90 100644 --- a/docs/structures_Message.js.html +++ b/docs/structures_Message.js.html @@ -4,7 +4,7 @@ - whatsapp-web.js 1.18.1 » Source: structures/Message.js + whatsapp-web.js 1.18.2 » Source: structures/Message.js @@ -15,7 +15,7 @@ diff --git a/docs/structures_MessageMedia.js.html b/docs/structures_MessageMedia.js.html index f4e96a7..1c3f7aa 100644 --- a/docs/structures_MessageMedia.js.html +++ b/docs/structures_MessageMedia.js.html @@ -4,7 +4,7 @@ - whatsapp-web.js 1.18.1 » Source: structures/MessageMedia.js + whatsapp-web.js 1.18.2 » Source: structures/MessageMedia.js @@ -15,7 +15,7 @@ diff --git a/docs/structures_Order.js.html b/docs/structures_Order.js.html index 3ab31a3..313a26f 100644 --- a/docs/structures_Order.js.html +++ b/docs/structures_Order.js.html @@ -4,7 +4,7 @@ - whatsapp-web.js 1.18.1 » Source: structures/Order.js + whatsapp-web.js 1.18.2 » Source: structures/Order.js @@ -15,7 +15,7 @@ diff --git a/docs/structures_Payment.js.html b/docs/structures_Payment.js.html index 282f375..a4f19c6 100644 --- a/docs/structures_Payment.js.html +++ b/docs/structures_Payment.js.html @@ -4,7 +4,7 @@ - whatsapp-web.js 1.18.1 » Source: structures/Payment.js + whatsapp-web.js 1.18.2 » Source: structures/Payment.js @@ -15,7 +15,7 @@ diff --git a/docs/structures_PrivateChat.js.html b/docs/structures_PrivateChat.js.html index 10e6230..3d1b457 100644 --- a/docs/structures_PrivateChat.js.html +++ b/docs/structures_PrivateChat.js.html @@ -4,7 +4,7 @@ - whatsapp-web.js 1.18.1 » Source: structures/PrivateChat.js + whatsapp-web.js 1.18.2 » Source: structures/PrivateChat.js @@ -15,7 +15,7 @@ diff --git a/docs/structures_PrivateContact.js.html b/docs/structures_PrivateContact.js.html index 2550477..8e24243 100644 --- a/docs/structures_PrivateContact.js.html +++ b/docs/structures_PrivateContact.js.html @@ -4,7 +4,7 @@ - whatsapp-web.js 1.18.1 » Source: structures/PrivateContact.js + whatsapp-web.js 1.18.2 » Source: structures/PrivateContact.js @@ -15,7 +15,7 @@ diff --git a/docs/structures_Product.js.html b/docs/structures_Product.js.html index 19e2bee..b3d345e 100644 --- a/docs/structures_Product.js.html +++ b/docs/structures_Product.js.html @@ -4,7 +4,7 @@ - whatsapp-web.js 1.18.1 » Source: structures/Product.js + whatsapp-web.js 1.18.2 » Source: structures/Product.js @@ -15,7 +15,7 @@ diff --git a/docs/structures_ProductMetadata.js.html b/docs/structures_ProductMetadata.js.html index 2494244..f4b68e2 100644 --- a/docs/structures_ProductMetadata.js.html +++ b/docs/structures_ProductMetadata.js.html @@ -4,7 +4,7 @@ - whatsapp-web.js 1.18.1 » Source: structures/ProductMetadata.js + whatsapp-web.js 1.18.2 » Source: structures/ProductMetadata.js @@ -15,7 +15,7 @@ diff --git a/docs/structures_Reaction.js.html b/docs/structures_Reaction.js.html index d5e6817..2efca66 100644 --- a/docs/structures_Reaction.js.html +++ b/docs/structures_Reaction.js.html @@ -4,7 +4,7 @@ - whatsapp-web.js 1.18.1 » Source: structures/Reaction.js + whatsapp-web.js 1.18.2 » Source: structures/Reaction.js @@ -15,7 +15,7 @@ diff --git a/docs/util_Constants.js.html b/docs/util_Constants.js.html index 6267643..1169b26 100644 --- a/docs/util_Constants.js.html +++ b/docs/util_Constants.js.html @@ -4,7 +4,7 @@ - whatsapp-web.js 1.18.1 » Source: util/Constants.js + whatsapp-web.js 1.18.2 » Source: util/Constants.js @@ -15,7 +15,7 @@ diff --git a/docs/util_InterfaceController.js.html b/docs/util_InterfaceController.js.html index 775d9fa..d034985 100644 --- a/docs/util_InterfaceController.js.html +++ b/docs/util_InterfaceController.js.html @@ -4,7 +4,7 @@ - whatsapp-web.js 1.18.1 » Source: util/InterfaceController.js + whatsapp-web.js 1.18.2 » Source: util/InterfaceController.js @@ -15,7 +15,7 @@ diff --git a/docs/util_Util.js.html b/docs/util_Util.js.html index 22e2dcb..a21b145 100644 --- a/docs/util_Util.js.html +++ b/docs/util_Util.js.html @@ -4,7 +4,7 @@ - whatsapp-web.js 1.18.1 » Source: util/Util.js + whatsapp-web.js 1.18.2 » Source: util/Util.js @@ -15,7 +15,7 @@ diff --git a/package.json b/package.json index 6566140..90094ea 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "whatsapp-web.js", - "version": "1.18.1", + "version": "1.18.2", "description": "Library for interacting with the WhatsApp Web API ", "main": "./index.js", "typings": "./index.d.ts",