diff --git a/README.md b/README.md
index 03626ab..cda4a29 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
@@ -80,6 +80,7 @@ For more information on saving and restoring sessions, check out the available [
| Get contact info | ✅ |
| Get profile pictures | ✅ |
| Set user status message | ✅ |
+| React to messages | ✅ |
Something missing? Make an issue and let us know!
diff --git a/docs/Base.html b/docs/Base.html
index f0946b9..146705d 100644
--- a/docs/Base.html
+++ b/docs/Base.html
@@ -4,7 +4,7 @@
@@ -183,6 +183,10 @@ client.initialize();
Set user status message
✅
+
+ React to messages
+ ✅
+
Something missing? Make an issue and let us know!
@@ -3154,7 +3158,7 @@ client.initialize();
diff --git a/docs/structures_Base.js.html b/docs/structures_Base.js.html
index 878d9c4..b62302b 100644
--- a/docs/structures_Base.js.html
+++ b/docs/structures_Base.js.html
@@ -4,7 +4,7 @@
- whatsapp-web.js 1.17.0 » Source: structures/Base.js
+ whatsapp-web.js 1.17.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 539389f..1569c33 100644
--- a/docs/structures_BusinessContact.js.html
+++ b/docs/structures_BusinessContact.js.html
@@ -4,7 +4,7 @@
- whatsapp-web.js 1.17.0 » Source: structures/BusinessContact.js
+ whatsapp-web.js 1.17.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 d98ef04..f118717 100644
--- a/docs/structures_Buttons.js.html
+++ b/docs/structures_Buttons.js.html
@@ -4,7 +4,7 @@
- whatsapp-web.js 1.17.0 » Source: structures/Buttons.js
+ whatsapp-web.js 1.17.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 4390d3a..cfe7007 100644
--- a/docs/structures_Call.js.html
+++ b/docs/structures_Call.js.html
@@ -4,7 +4,7 @@
- whatsapp-web.js 1.17.0 » Source: structures/Call.js
+ whatsapp-web.js 1.17.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 92e84b1..09d1986 100644
--- a/docs/structures_Chat.js.html
+++ b/docs/structures_Chat.js.html
@@ -4,7 +4,7 @@
- whatsapp-web.js 1.17.0 » Source: structures/Chat.js
+ whatsapp-web.js 1.17.1 » Source: structures/Chat.js
@@ -15,7 +15,7 @@
@@ -290,7 +290,7 @@ module.exports = Chat;
diff --git a/docs/structures_ClientInfo.js.html b/docs/structures_ClientInfo.js.html
index a87312b..fe6a725 100644
--- a/docs/structures_ClientInfo.js.html
+++ b/docs/structures_ClientInfo.js.html
@@ -4,7 +4,7 @@
- whatsapp-web.js 1.17.0 » Source: structures/ClientInfo.js
+ whatsapp-web.js 1.17.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 95ac42a..1344f74 100644
--- a/docs/structures_Contact.js.html
+++ b/docs/structures_Contact.js.html
@@ -4,7 +4,7 @@
- whatsapp-web.js 1.17.0 » Source: structures/Contact.js
+ whatsapp-web.js 1.17.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 391df25..c0d97de 100644
--- a/docs/structures_GroupChat.js.html
+++ b/docs/structures_GroupChat.js.html
@@ -4,7 +4,7 @@
- whatsapp-web.js 1.17.0 » Source: structures/GroupChat.js
+ whatsapp-web.js 1.17.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 0ade5b5..943eb50 100644
--- a/docs/structures_GroupNotification.js.html
+++ b/docs/structures_GroupNotification.js.html
@@ -4,7 +4,7 @@
- whatsapp-web.js 1.17.0 » Source: structures/GroupNotification.js
+ whatsapp-web.js 1.17.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 f8acc76..1a28b12 100644
--- a/docs/structures_Label.js.html
+++ b/docs/structures_Label.js.html
@@ -4,7 +4,7 @@
- whatsapp-web.js 1.17.0 » Source: structures/Label.js
+ whatsapp-web.js 1.17.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 27b0eed..5f66e7a 100644
--- a/docs/structures_List.js.html
+++ b/docs/structures_List.js.html
@@ -4,7 +4,7 @@
- whatsapp-web.js 1.17.0 » Source: structures/List.js
+ whatsapp-web.js 1.17.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 6026c63..1dfb302 100644
--- a/docs/structures_Location.js.html
+++ b/docs/structures_Location.js.html
@@ -4,7 +4,7 @@
- whatsapp-web.js 1.17.0 » Source: structures/Location.js
+ whatsapp-web.js 1.17.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 3bb29af..125c4f3 100644
--- a/docs/structures_Message.js.html
+++ b/docs/structures_Message.js.html
@@ -4,7 +4,7 @@
- whatsapp-web.js 1.17.0 » Source: structures/Message.js
+ whatsapp-web.js 1.17.1 » Source: structures/Message.js
@@ -15,7 +15,7 @@
@@ -566,7 +566,7 @@ module.exports = Message;
diff --git a/docs/structures_MessageMedia.js.html b/docs/structures_MessageMedia.js.html
index a0fbcc9..f1886fa 100644
--- a/docs/structures_MessageMedia.js.html
+++ b/docs/structures_MessageMedia.js.html
@@ -4,7 +4,7 @@
- whatsapp-web.js 1.17.0 » Source: structures/MessageMedia.js
+ whatsapp-web.js 1.17.1 » Source: structures/MessageMedia.js
@@ -15,7 +15,7 @@
@@ -142,7 +142,7 @@ module.exports = MessageMedia;
diff --git a/docs/structures_Order.js.html b/docs/structures_Order.js.html
index 6c5a007..26461b3 100644
--- a/docs/structures_Order.js.html
+++ b/docs/structures_Order.js.html
@@ -4,7 +4,7 @@
- whatsapp-web.js 1.17.0 » Source: structures/Order.js
+ whatsapp-web.js 1.17.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 7494ad8..8e74292 100644
--- a/docs/structures_Payment.js.html
+++ b/docs/structures_Payment.js.html
@@ -4,7 +4,7 @@
- whatsapp-web.js 1.17.0 » Source: structures/Payment.js
+ whatsapp-web.js 1.17.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 e97628c..3f32888 100644
--- a/docs/structures_PrivateChat.js.html
+++ b/docs/structures_PrivateChat.js.html
@@ -4,7 +4,7 @@
- whatsapp-web.js 1.17.0 » Source: structures/PrivateChat.js
+ whatsapp-web.js 1.17.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 2cab9ba..40706a4 100644
--- a/docs/structures_PrivateContact.js.html
+++ b/docs/structures_PrivateContact.js.html
@@ -4,7 +4,7 @@
- whatsapp-web.js 1.17.0 » Source: structures/PrivateContact.js
+ whatsapp-web.js 1.17.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 4518a45..0c77d31 100644
--- a/docs/structures_Product.js.html
+++ b/docs/structures_Product.js.html
@@ -4,7 +4,7 @@
- whatsapp-web.js 1.17.0 » Source: structures/Product.js
+ whatsapp-web.js 1.17.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 12eb181..220bef0 100644
--- a/docs/structures_ProductMetadata.js.html
+++ b/docs/structures_ProductMetadata.js.html
@@ -4,7 +4,7 @@
- whatsapp-web.js 1.17.0 » Source: structures/ProductMetadata.js
+ whatsapp-web.js 1.17.1 » Source: structures/ProductMetadata.js
@@ -15,7 +15,7 @@
@@ -63,7 +63,7 @@ module.exports = ProductMetadata;
diff --git a/docs/util_Constants.js.html b/docs/util_Constants.js.html
index 6d370c2..ab0edca 100644
--- a/docs/util_Constants.js.html
+++ b/docs/util_Constants.js.html
@@ -4,7 +4,7 @@
- whatsapp-web.js 1.17.0 » Source: util/Constants.js
+ whatsapp-web.js 1.17.1 » Source: util/Constants.js
@@ -15,7 +15,7 @@
@@ -197,7 +197,7 @@ exports.MessageAck = {
diff --git a/docs/util_InterfaceController.js.html b/docs/util_InterfaceController.js.html
index ac19a0b..0cdbf70 100644
--- a/docs/util_InterfaceController.js.html
+++ b/docs/util_InterfaceController.js.html
@@ -4,7 +4,7 @@
- whatsapp-web.js 1.17.0 » Source: util/InterfaceController.js
+ whatsapp-web.js 1.17.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 01e5a75..50b56d0 100644
--- a/docs/util_Util.js.html
+++ b/docs/util_Util.js.html
@@ -4,7 +4,7 @@
- whatsapp-web.js 1.17.0 » Source: util/Util.js
+ whatsapp-web.js 1.17.1 » Source: util/Util.js
@@ -15,7 +15,7 @@
@@ -225,7 +225,7 @@ module.exports = Util;
diff --git a/index.d.ts b/index.d.ts
index d5600b3..040d918 100644
--- a/index.d.ts
+++ b/index.d.ts
@@ -604,6 +604,8 @@ declare namespace WAWebJS {
ack: MessageAck,
/** If the message was sent to a group, this field will contain the user that sent the message. */
author?: string,
+ /** String that represents from which device type the message was sent */
+ deviceType: string,
/** Message content */
body: string,
/** Indicates if the message was a broadcast */
@@ -704,7 +706,7 @@ declare namespace WAWebJS {
*/
reply: (content: MessageContent, chatId?: string, options?: MessageSendOptions) => Promise,
/** React to this message with an emoji*/
- react: (reaction: string) => Promise,
+ react: (reaction: string) => Promise,
/**
* Forwards this message to another chat
*/
diff --git a/package.json b/package.json
index 8332cdb..e33dfe4 100644
--- a/package.json
+++ b/package.json
@@ -1,6 +1,6 @@
{
"name": "whatsapp-web.js",
- "version": "1.17.0",
+ "version": "1.17.1",
"description": "Library for interacting with the WhatsApp Web API ",
"main": "./index.js",
"typings": "./index.d.ts",
diff --git a/src/Client.js b/src/Client.js
index 843a9fe..d30390b 100644
--- a/src/Client.js
+++ b/src/Client.js
@@ -132,7 +132,7 @@ class Client extends EventEmitter {
})
]);
- // Checks if an error ocurred on the first found selector. The second will be discarded and ignored by .race;
+ // Checks if an error occurred on the first found selector. The second will be discarded and ignored by .race;
if (needAuthentication instanceof Error) throw needAuthentication;
// Scan-qrcode selector was found. Needs authentication
@@ -949,7 +949,8 @@ class Client extends EventEmitter {
}
return await this.pupPage.evaluate(async number => {
- const result = await window.Store.QueryExist(number);
+ const wid = window.Store.WidFactory.createWid(number);
+ const result = await window.Store.QueryExist(wid);
if (!result || result.wid === undefined) return null;
return result.wid;
}, number);
diff --git a/tools/version-checker/.version b/tools/version-checker/.version
index 6f1dd18..5454cae 100644
--- a/tools/version-checker/.version
+++ b/tools/version-checker/.version
@@ -1 +1 @@
-2.2220.8
\ No newline at end of file
+2.2224.8
\ No newline at end of file