diff --git a/docs/Base.html b/docs/Base.html
index 22a7b90..009372f 100644
--- a/docs/Base.html
+++ b/docs/Base.html
@@ -4,7 +4,7 @@
- whatsapp-web.js 1.9.0 » Class: Base
+ whatsapp-web.js 1.10.0 » Class: Base
@@ -15,7 +15,7 @@
@@ -50,7 +50,7 @@
diff --git a/docs/BusinessContact.html b/docs/BusinessContact.html
index 301b707..1a9f896 100644
--- a/docs/BusinessContact.html
+++ b/docs/BusinessContact.html
@@ -4,7 +4,7 @@
- whatsapp-web.js 1.9.0 » Class: BusinessContact
+ whatsapp-web.js 1.10.0 » Class: BusinessContact
@@ -15,7 +15,7 @@
@@ -242,7 +242,7 @@
diff --git a/docs/Chat.html b/docs/Chat.html
index 591d6a2..330f1c3 100644
--- a/docs/Chat.html
+++ b/docs/Chat.html
@@ -4,7 +4,7 @@
- whatsapp-web.js 1.9.0 » Class: Chat
+ whatsapp-web.js 1.10.0 » Class: Chat
@@ -15,7 +15,7 @@
@@ -48,26 +48,29 @@
isGroup
+ isMuted
+
+
@@ -180,6 +189,11 @@
Title of the chat
+ pinned
+ boolean
+ Indicates if the Chat is pinned
+
+
timestamp
number
Unix timestamp for when the last activity occurred
@@ -333,6 +347,16 @@
async
+ pin() → Promise containing boolean
+ Pins this chat
+
+ - Returns
+ -
+
Promise containing boolean
New pin state. Could be false if the max number of pinned chats was reached.
+
+
+
+ async
sendMessage(content[, options]) → Promise containing Message
Send a message to this chat
@@ -413,6 +437,16 @@
Unmutes this chat
+ async
+ unpin() → Promise containing boolean
+ Unpins this chat
+
+ - Returns
+ -
+
Promise containing boolean
New pin state
+
+
+
@@ -423,7 +457,7 @@
diff --git a/docs/Client.html b/docs/Client.html
index 8e4f547..07128ae 100644
--- a/docs/Client.html
+++ b/docs/Client.html
@@ -4,7 +4,7 @@
- whatsapp-web.js 1.9.0 » Class: Client
+ whatsapp-web.js 1.10.0 » Class: Client
@@ -15,7 +15,7 @@
@@ -79,13 +79,13 @@
getContacts()
+ getInviteInfo(inviteCode)
+
+
@@ -852,6 +858,16 @@
async
+ pinChat() → Promise containing boolean
+ Pins the Chat
+
+ - Returns
+ -
+
Promise containing boolean
New pin state. Could be false if the max number of pinned chats was reached.
+
+
+
+ async
resetState()
Force reset of connection state for the client
@@ -1076,6 +1092,16 @@
+ async
+ unpinChat() → Promise containing boolean
+ Unpins the Chat
+
+ - Returns
+ -
+
Promise containing boolean
New pin state
+
+
+
Events
@@ -1722,7 +1748,7 @@
diff --git a/docs/Client.js.html b/docs/Client.js.html
index ce55d3a..2da8182 100644
--- a/docs/Client.js.html
+++ b/docs/Client.js.html
@@ -4,7 +4,7 @@
- whatsapp-web.js 1.9.0 » Source: Client.js
+ whatsapp-web.js 1.10.0 » Source: Client.js
@@ -15,7 +15,7 @@
@@ -641,6 +641,43 @@ class Client extends EventEmitter {
}, chatId);
}
+ /**
+ * Pins the Chat
+ * @returns {Promise<boolean>} New pin state. Could be false if the max number of pinned chats was reached.
+ */
+ async pinChat(chatId) {
+ return this.pupPage.evaluate(async chatId => {
+ let chat = window.Store.Chat.get(chatId);
+ if (chat.pin) {
+ return true;
+ }
+ const MAX_PIN_COUNT = 3;
+ if (window.Store.Chat.models.length > MAX_PIN_COUNT) {
+ let maxPinned = window.Store.Chat.models[MAX_PIN_COUNT - 1].pin;
+ if (maxPinned) {
+ return false;
+ }
+ }
+ await window.Store.Cmd.pinChat(chat, true);
+ return true;
+ }, chatId);
+ }
+
+ /**
+ * Unpins the Chat
+ * @returns {Promise<boolean>} New pin state
+ */
+ async unpinChat(chatId) {
+ return this.pupPage.evaluate(async chatId => {
+ let chat = window.Store.Chat.get(chatId);
+ if (!chat.pin) {
+ return false;
+ }
+ await window.Store.Cmd.pinChat(chat, false);
+ return false;
+ }, chatId);
+ }
+
/**
* Mutes the Chat until a specified date
* @param {string} chatId ID of the chat that will be muted
@@ -748,7 +785,7 @@ module.exports = Client;
diff --git a/docs/ClientInfo.html b/docs/ClientInfo.html
index 53440f7..52d01dc 100644
--- a/docs/ClientInfo.html
+++ b/docs/ClientInfo.html
@@ -4,7 +4,7 @@
- whatsapp-web.js 1.9.0 » Class: ClientInfo
+ whatsapp-web.js 1.10.0 » Class: ClientInfo
@@ -15,7 +15,7 @@
@@ -224,7 +224,7 @@
diff --git a/docs/Contact.html b/docs/Contact.html
index 9f8cb84..1a2886a 100644
--- a/docs/Contact.html
+++ b/docs/Contact.html
@@ -4,7 +4,7 @@
- whatsapp-web.js 1.9.0 » Class: Contact
+ whatsapp-web.js 1.10.0 » Class: Contact
@@ -15,7 +15,7 @@
@@ -211,7 +211,7 @@
diff --git a/docs/GroupChat.html b/docs/GroupChat.html
index c1e160f..0ebf9cb 100644
--- a/docs/GroupChat.html
+++ b/docs/GroupChat.html
@@ -4,7 +4,7 @@
- whatsapp-web.js 1.9.0 » Class: GroupChat
+ whatsapp-web.js 1.10.0 » Class: GroupChat
@@ -15,7 +15,7 @@
@@ -80,6 +80,9 @@
- participants
-
+ - pinned
+ -
+
- timestamp
-
@@ -119,19 +122,22 @@
- getContact()
-
+ - getInviteCode()
+ -
+
@@ -252,6 +267,13 @@
Gets the group participants
+ pinned
+ unknown
+ Indicates if the Chat is pinned
+
+ - Inherited from
+ - Chat#pinned
+
timestamp
unknown
Unix timestamp for when the last activity occurred
@@ -493,6 +515,17 @@
Chat#mute
async
+ pin() → Promise containing boolean
+ Pins this chat
+
+ - Inherited from
+ - Chat#pin
+ - Returns
+ -
+
New pin state. Could be false if the max number of pinned chats was reached.
+
+
+ async
Promotes participants by IDs to admins
@@ -674,6 +707,86 @@
async
+ setInfoAdminsOnly([adminsOnly]) → Promise containing boolean
+ Updates the group settings to only allow admins to edit group info (title, description, photo).
+
+ Parameter
+
+
+
+ | Name |
+ Type |
+ Optional |
+ Description |
+
+
+
+
+ |
+ adminsOnly
+ |
+
+ boolean
+ |
+
+ Yes
+ |
+
+ Enable or disable this option
+ Defaults to true.
+ |
+
+
+
+
+
+ - Returns
+ -
+
Promise containing boolean
Returns true if the setting was properly updated. This can return false if the user does not have the necessary permissions.
+
+
+
+ async
+ setMessagesAdminsOnly([adminsOnly]) → Promise containing boolean
+ Updates the group settings to only allow admins to send messages.
+
+ Parameter
+
+
+
+ | Name |
+ Type |
+ Optional |
+ Description |
+
+
+
+
+ |
+ adminsOnly
+ |
+
+ boolean
+ |
+
+ Yes
+ |
+
+ Enable or disable this option
+ Defaults to true.
+ |
+
+
+
+
+
+ - Returns
+ -
+
Promise containing boolean
Returns true if the setting was properly updated. This can return false if the user does not have the necessary permissions.
+
+
+
+ async
setSubject(subject)
Updates the group subject
@@ -720,6 +833,17 @@
Inherited from
Chat#unmute
+ async
+ unpin() → Promise containing boolean
+ Unpins this chat
+
+ - Inherited from
+ - Chat#unpin
+ - Returns
+ -
+
New pin state
+
+
@@ -730,7 +854,7 @@
diff --git a/docs/GroupNotification.html b/docs/GroupNotification.html
index dac82cd..d0f17a2 100644
--- a/docs/GroupNotification.html
+++ b/docs/GroupNotification.html
@@ -4,7 +4,7 @@
- whatsapp-web.js 1.9.0 » Class: GroupNotification
+ whatsapp-web.js 1.10.0 » Class: GroupNotification
@@ -15,7 +15,7 @@
@@ -233,7 +233,7 @@
diff --git a/docs/InterfaceController.html b/docs/InterfaceController.html
index 8727a77..013b46b 100644
--- a/docs/InterfaceController.html
+++ b/docs/InterfaceController.html
@@ -4,7 +4,7 @@
- whatsapp-web.js 1.9.0 » Class: InterfaceController
+ whatsapp-web.js 1.10.0 » Class: InterfaceController
@@ -15,7 +15,7 @@
@@ -187,7 +187,7 @@
diff --git a/docs/Location.html b/docs/Location.html
index 1ba9a8b..28cbbf3 100644
--- a/docs/Location.html
+++ b/docs/Location.html
@@ -4,7 +4,7 @@
- whatsapp-web.js 1.9.0 » Class: Location
+ whatsapp-web.js 1.10.0 » Class: Location
@@ -15,7 +15,7 @@
@@ -149,7 +149,7 @@
diff --git a/docs/Message.html b/docs/Message.html
index 8f54e75..ecd7555 100644
--- a/docs/Message.html
+++ b/docs/Message.html
@@ -4,7 +4,7 @@
- whatsapp-web.js 1.9.0 » Class: Message
+ whatsapp-web.js 1.10.0 » Class: Message
@@ -15,7 +15,7 @@
@@ -427,7 +427,7 @@
diff --git a/docs/MessageMedia.html b/docs/MessageMedia.html
index 9816ec8..5a47abf 100644
--- a/docs/MessageMedia.html
+++ b/docs/MessageMedia.html
@@ -4,7 +4,7 @@
- whatsapp-web.js 1.9.0 » Class: MessageMedia
+ whatsapp-web.js 1.10.0 » Class: MessageMedia
@@ -15,7 +15,7 @@
@@ -208,7 +208,7 @@
diff --git a/docs/PrivateChat.html b/docs/PrivateChat.html
index d15d2a1..00ae729 100644
--- a/docs/PrivateChat.html
+++ b/docs/PrivateChat.html
@@ -4,7 +4,7 @@
- whatsapp-web.js 1.9.0 » Class: PrivateChat
+ whatsapp-web.js 1.10.0 » Class: PrivateChat
@@ -15,7 +15,7 @@
@@ -48,26 +48,29 @@
isGroup
+ isMuted
+
+
@@ -194,6 +203,13 @@
Inherited from
Chat#name
+ pinned
+ unknown
+ Indicates if the Chat is pinned
+
+ - Inherited from
+ - Chat#pinned
+
timestamp
unknown
Unix timestamp for when the last activity occurred
@@ -359,6 +375,17 @@
Chat#mute
async
+ pin() → Promise containing boolean
+ Pins this chat
+
+ - Inherited from
+ - Chat#pin
+ - Returns
+ -
+
New pin state. Could be false if the max number of pinned chats was reached.
+
+
+ async
sendMessage(content[, options]) → Promise containing Message
Send a message to this chat
@@ -449,6 +476,17 @@
Inherited from
Chat#unmute
+ async
+ unpin() → Promise containing boolean
+ Unpins this chat
+
+ - Inherited from
+ - Chat#unpin
+ - Returns
+ -
+
New pin state
+
+
@@ -459,7 +497,7 @@
diff --git a/docs/PrivateContact.html b/docs/PrivateContact.html
index fde15d7..238363d 100644
--- a/docs/PrivateContact.html
+++ b/docs/PrivateContact.html
@@ -4,7 +4,7 @@
- whatsapp-web.js 1.9.0 » Class: PrivateContact
+ whatsapp-web.js 1.10.0 » Class: PrivateContact
@@ -15,7 +15,7 @@
@@ -235,7 +235,7 @@
diff --git a/docs/Util.html b/docs/Util.html
index 8c39e0b..b000943 100644
--- a/docs/Util.html
+++ b/docs/Util.html
@@ -4,7 +4,7 @@
- whatsapp-web.js 1.9.0 » Class: Util
+ whatsapp-web.js 1.10.0 » Class: Util
@@ -15,7 +15,7 @@
@@ -50,7 +50,7 @@
diff --git a/docs/global.html b/docs/global.html
index 9b54746..f729cb8 100644
--- a/docs/global.html
+++ b/docs/global.html
@@ -4,7 +4,7 @@
- whatsapp-web.js 1.9.0 » Globals
+ whatsapp-web.js 1.10.0 » Globals
@@ -15,7 +15,7 @@
@@ -1157,7 +1157,7 @@
diff --git a/docs/index.html b/docs/index.html
index bc07942..1696490 100644
--- a/docs/index.html
+++ b/docs/index.html
@@ -4,7 +4,7 @@
- whatsapp-web.js 1.9.0 » Home
+ whatsapp-web.js 1.10.0 » Home
@@ -15,7 +15,7 @@
@@ -27,11 +27,11 @@
-
+
-
+
-
+
@@ -1010,10 +1035,6 @@ client.initialize();
-
-
-
+
-
+
-
+
+
-
PrivateChat#isGroup
@@ -1770,6 +1820,16 @@ client.initialize();
-
+ -
+ PrivateChat#pin()
+
+ -
+
+ -
+ PrivateChat#pinned
+
+ -
+
-
PrivateChat#sendMessage(content[, options])
@@ -1809,6 +1869,11 @@ client.initialize();
-
+ -
+ PrivateChat#unpin()
+
+ -
+
-
PrivateChat#unreadCount
@@ -2059,7 +2124,7 @@ client.initialize();
diff --git a/docs/structures_Base.js.html b/docs/structures_Base.js.html
index 18acf4e..b297db1 100644
--- a/docs/structures_Base.js.html
+++ b/docs/structures_Base.js.html
@@ -4,7 +4,7 @@
- whatsapp-web.js 1.9.0 » Source: structures/Base.js
+ whatsapp-web.js 1.10.0 » 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 acd59d9..0a42b2a 100644
--- a/docs/structures_BusinessContact.js.html
+++ b/docs/structures_BusinessContact.js.html
@@ -4,7 +4,7 @@
- whatsapp-web.js 1.9.0 » Source: structures/BusinessContact.js
+ whatsapp-web.js 1.10.0 » 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 fd8b038..a61453a 100644
--- a/docs/structures_Chat.js.html
+++ b/docs/structures_Chat.js.html
@@ -4,7 +4,7 @@
- whatsapp-web.js 1.9.0 » Source: structures/Chat.js
+ whatsapp-web.js 1.10.0 » Source: structures/Chat.js
@@ -15,7 +15,7 @@
@@ -88,6 +88,12 @@ class Chat extends Base {
*/
this.archived = data.archive;
+ /**
+ * Indicates if the Chat is pinned
+ * @type {boolean}
+ */
+ this.pinned = !!data.pin;
+
/**
* Indicates if the chat is muted or not
* @type {number}
@@ -155,6 +161,22 @@ class Chat extends Base {
return this.client.unarchiveChat(this.id._serialized);
}
+ /**
+ * Pins this chat
+ * @returns {Promise<boolean>} New pin state. Could be false if the max number of pinned chats was reached.
+ */
+ async pin() {
+ return this.client.pinChat(this.id._serialized);
+ }
+
+ /**
+ * Unpins this chat
+ * @returns {Promise<boolean>} New pin state
+ */
+ async unpin() {
+ return this.client.unpinChat(this.id._serialized);
+ }
+
/**
* Mutes this chat until a specified date
* @param {Date} unmuteDate Date at which the Chat will be unmuted
@@ -250,7 +272,7 @@ module.exports = Chat;
diff --git a/docs/structures_ClientInfo.js.html b/docs/structures_ClientInfo.js.html
index 024921d..13a9ad2 100644
--- a/docs/structures_ClientInfo.js.html
+++ b/docs/structures_ClientInfo.js.html
@@ -4,7 +4,7 @@
- whatsapp-web.js 1.9.0 » Source: structures/ClientInfo.js
+ whatsapp-web.js 1.10.0 » Source: structures/ClientInfo.js
@@ -15,7 +15,7 @@
@@ -102,7 +102,7 @@ module.exports = ClientInfo;
diff --git a/docs/structures_Contact.js.html b/docs/structures_Contact.js.html
index 0b3bc9b..d297d44 100644
--- a/docs/structures_Contact.js.html
+++ b/docs/structures_Contact.js.html
@@ -4,7 +4,7 @@
- whatsapp-web.js 1.9.0 » Source: structures/Contact.js
+ whatsapp-web.js 1.10.0 » Source: structures/Contact.js
@@ -15,7 +15,7 @@
@@ -160,7 +160,7 @@ module.exports = Contact;
diff --git a/docs/structures_GroupChat.js.html b/docs/structures_GroupChat.js.html
index 147769e..8eeaf9e 100644
--- a/docs/structures_GroupChat.js.html
+++ b/docs/structures_GroupChat.js.html
@@ -4,7 +4,7 @@
- whatsapp-web.js 1.9.0 » Source: structures/GroupChat.js
+ whatsapp-web.js 1.10.0 » Source: structures/GroupChat.js
@@ -15,7 +15,7 @@
@@ -66,6 +66,7 @@ class GroupChat extends Chat {
get description() {
return this.groupMetadata.desc;
}
+
/**
* Gets the group participants
* @type {array}
@@ -143,6 +144,38 @@ class GroupChat extends Chat {
}
}
+ /**
+ * Updates the group settings to only allow admins to send messages.
+ * @param {boolean} [adminsOnly=true] Enable or disable this option
+ * @returns {Promise<boolean>} Returns true if the setting was properly updated. This can return false if the user does not have the necessary permissions.
+ */
+ async setMessagesAdminsOnly(adminsOnly=true) {
+ let res = await this.client.pupPage.evaluate((chatId, value) => {
+ return window.Store.Wap.setGroupProperty(chatId, 'announcement', value);
+ }, this.id._serialized, adminsOnly);
+
+ if (res.status !== 200) return false;
+
+ this.groupMetadata.announce = adminsOnly;
+ return true;
+ }
+
+ /**
+ * Updates the group settings to only allow admins to edit group info (title, description, photo).
+ * @param {boolean} [adminsOnly=true] Enable or disable this option
+ * @returns {Promise<boolean>} Returns true if the setting was properly updated. This can return false if the user does not have the necessary permissions.
+ */
+ async setInfoAdminsOnly(adminsOnly=true) {
+ let res = await this.client.pupPage.evaluate((chatId, value) => {
+ return window.Store.Wap.setGroupProperty(chatId, 'restrict', value);
+ }, this.id._serialized, adminsOnly);
+
+ if (res.status !== 200) return false;
+
+ this.groupMetadata.restrict = adminsOnly;
+ return true;
+ }
+
/**
* Gets the invite code for a specific group
*/
@@ -188,7 +221,7 @@ module.exports = GroupChat;
diff --git a/docs/structures_GroupNotification.js.html b/docs/structures_GroupNotification.js.html
index f747720..66ac1bb 100644
--- a/docs/structures_GroupNotification.js.html
+++ b/docs/structures_GroupNotification.js.html
@@ -4,7 +4,7 @@
- whatsapp-web.js 1.9.0 » Source: structures/GroupNotification.js
+ whatsapp-web.js 1.10.0 » Source: structures/GroupNotification.js
@@ -15,7 +15,7 @@
@@ -143,7 +143,7 @@ module.exports = GroupNotification;
diff --git a/docs/structures_Location.js.html b/docs/structures_Location.js.html
index ae9ce0b..7fc4a3c 100644
--- a/docs/structures_Location.js.html
+++ b/docs/structures_Location.js.html
@@ -4,7 +4,7 @@
- whatsapp-web.js 1.9.0 » Source: structures/Location.js
+ whatsapp-web.js 1.10.0 » 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 2f8c228..ab6cfa9 100644
--- a/docs/structures_Message.js.html
+++ b/docs/structures_Message.js.html
@@ -4,7 +4,7 @@
- whatsapp-web.js 1.9.0 » Source: structures/Message.js
+ whatsapp-web.js 1.10.0 » Source: structures/Message.js
@@ -15,7 +15,7 @@
@@ -304,7 +304,7 @@ module.exports = Message;
diff --git a/docs/structures_MessageMedia.js.html b/docs/structures_MessageMedia.js.html
index afffa90..93e065a 100644
--- a/docs/structures_MessageMedia.js.html
+++ b/docs/structures_MessageMedia.js.html
@@ -4,7 +4,7 @@
- whatsapp-web.js 1.9.0 » Source: structures/MessageMedia.js
+ whatsapp-web.js 1.10.0 » 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 594ef8f..b9dc0d3 100644
--- a/docs/structures_PrivateChat.js.html
+++ b/docs/structures_PrivateChat.js.html
@@ -4,7 +4,7 @@
- whatsapp-web.js 1.9.0 » Source: structures/PrivateChat.js
+ whatsapp-web.js 1.10.0 » 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 95a0c90..0b521b6 100644
--- a/docs/structures_PrivateContact.js.html
+++ b/docs/structures_PrivateContact.js.html
@@ -4,7 +4,7 @@
- whatsapp-web.js 1.9.0 » Source: structures/PrivateContact.js
+ whatsapp-web.js 1.10.0 » 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 0984ada..03492c5 100644
--- a/docs/util_Constants.js.html
+++ b/docs/util_Constants.js.html
@@ -4,7 +4,7 @@
- whatsapp-web.js 1.9.0 » Source: util/Constants.js
+ whatsapp-web.js 1.10.0 » Source: util/Constants.js
@@ -15,7 +15,7 @@
@@ -173,7 +173,7 @@ exports.MessageAck = {
diff --git a/docs/util_InterfaceController.js.html b/docs/util_InterfaceController.js.html
index fd22f65..00e3573 100644
--- a/docs/util_InterfaceController.js.html
+++ b/docs/util_InterfaceController.js.html
@@ -4,7 +4,7 @@
- whatsapp-web.js 1.9.0 » Source: util/InterfaceController.js
+ whatsapp-web.js 1.10.0 » Source: util/InterfaceController.js
@@ -15,7 +15,7 @@
@@ -94,7 +94,7 @@ module.exports = InterfaceController;
diff --git a/docs/util_Util.js.html b/docs/util_Util.js.html
index 75c4491..8aa3297 100644
--- a/docs/util_Util.js.html
+++ b/docs/util_Util.js.html
@@ -4,7 +4,7 @@
- whatsapp-web.js 1.9.0 » Source: util/Util.js
+ whatsapp-web.js 1.10.0 » Source: util/Util.js
@@ -15,7 +15,7 @@
@@ -73,7 +73,7 @@ module.exports = Util;
diff --git a/package.json b/package.json
index f1a2bbe..7fca04e 100644
--- a/package.json
+++ b/package.json
@@ -1,6 +1,6 @@
{
"name": "whatsapp-web.js",
- "version": "1.9.0",
+ "version": "1.10.0",
"description": "Library for interacting with the WhatsApp Web API ",
"main": "./index.js",
"typings": "./index.d.ts",