diff --git a/docs/Base.html b/docs/Base.html
index fed33bf..cbdaab6 100644
--- a/docs/Base.html
+++ b/docs/Base.html
@@ -4,7 +4,7 @@
+ - getFormattedNumber()
+ -
+
- getProfilePicUrl()
-
@@ -262,6 +265,15 @@
async
+
getBroadcast() → Promise containing Broadcast
+
Gets the Contact's current status broadcast.
+
+ - Inherited from
+ - Contact#getBroadcast
+ - Returns
+
+
+
async
getChat() → Promise containing Chat
Returns the Chat that corresponds to this Contact.
Will return null when getting chat for currently logged in user.
@@ -326,7 +338,7 @@
diff --git a/docs/Buttons.html b/docs/Buttons.html
index 55cb939..9497806 100644
--- a/docs/Buttons.html
+++ b/docs/Buttons.html
@@ -4,7 +4,7 @@
-
whatsapp-web.js 1.34.2 » Class: Buttons
+
whatsapp-web.js 1.34.3 » 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 26fa8eb..e1abee8 100644
--- a/docs/Call.html
+++ b/docs/Call.html
@@ -4,7 +4,7 @@
-
whatsapp-web.js 1.34.2 » Class: Call
+
whatsapp-web.js 1.34.3 » Class: Call
@@ -15,7 +15,7 @@
@@ -168,7 +168,7 @@
diff --git a/docs/Channel.html b/docs/Channel.html
index 1e3f78b..9aff674 100644
--- a/docs/Channel.html
+++ b/docs/Channel.html
@@ -4,7 +4,7 @@
-
whatsapp-web.js 1.34.2 » Class: Channel
+
whatsapp-web.js 1.34.3 » Class: Channel
@@ -15,7 +15,7 @@
@@ -896,7 +896,7 @@
diff --git a/docs/Chat.html b/docs/Chat.html
index 2946f38..f7c1361 100644
--- a/docs/Chat.html
+++ b/docs/Chat.html
@@ -4,7 +4,7 @@
-
whatsapp-web.js 1.34.2 » Class: Chat
+
whatsapp-web.js 1.34.3 » Class: Chat
@@ -15,7 +15,7 @@
@@ -634,7 +634,7 @@
diff --git a/docs/Client.html b/docs/Client.html
index bbe6717..8ac37d9 100644
--- a/docs/Client.html
+++ b/docs/Client.html
@@ -3,7 +3,7 @@
-
whatsapp-web.js 1.34.2 » Class: Client
+
whatsapp-web.js 1.34.3 » Class: Client
@@ -13,7 +13,7 @@
@@ -23,7 +23,7 @@
@@ -3114,6 +3154,11 @@ limitations under the License.
+ -
+ PrivateContact#isUser
+
+ -
+
-
PrivateContact#isWAContact
@@ -4376,7 +4426,7 @@ limitations under the License.
diff --git a/docs/structures_Base.js.html b/docs/structures_Base.js.html
index a6c32b7..a7fce7b 100644
--- a/docs/structures_Base.js.html
+++ b/docs/structures_Base.js.html
@@ -4,7 +4,7 @@
- whatsapp-web.js 1.34.2 » Source: structures/Base.js
+ whatsapp-web.js 1.34.3 » Source: structures/Base.js
@@ -15,7 +15,7 @@
@@ -60,7 +60,7 @@ module.exports = Base;
diff --git a/docs/structures_Broadcast.js.html b/docs/structures_Broadcast.js.html
index 74b8c8d..c9d018a 100644
--- a/docs/structures_Broadcast.js.html
+++ b/docs/structures_Broadcast.js.html
@@ -4,7 +4,7 @@
- whatsapp-web.js 1.34.2 » Source: structures/Broadcast.js
+ whatsapp-web.js 1.34.3 » Source: structures/Broadcast.js
@@ -15,7 +15,7 @@
@@ -108,7 +108,7 @@ module.exports = Broadcast;
diff --git a/docs/structures_BusinessContact.js.html b/docs/structures_BusinessContact.js.html
index 40e5c08..c44895e 100644
--- a/docs/structures_BusinessContact.js.html
+++ b/docs/structures_BusinessContact.js.html
@@ -4,7 +4,7 @@
- whatsapp-web.js 1.34.2 » Source: structures/BusinessContact.js
+ whatsapp-web.js 1.34.3 » 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 4dc6d46..a026c90 100644
--- a/docs/structures_Buttons.js.html
+++ b/docs/structures_Buttons.js.html
@@ -4,7 +4,7 @@
- whatsapp-web.js 1.34.2 » Source: structures/Buttons.js
+ whatsapp-web.js 1.34.3 » 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 8f729fe..f1de01c 100644
--- a/docs/structures_Call.js.html
+++ b/docs/structures_Call.js.html
@@ -4,7 +4,7 @@
- whatsapp-web.js 1.34.2 » Source: structures/Call.js
+ whatsapp-web.js 1.34.3 » Source: structures/Call.js
@@ -15,7 +15,7 @@
@@ -114,7 +114,7 @@ module.exports = Call;
diff --git a/docs/structures_Channel.js.html b/docs/structures_Channel.js.html
index 25e6601..417e65b 100644
--- a/docs/structures_Channel.js.html
+++ b/docs/structures_Channel.js.html
@@ -4,7 +4,7 @@
- whatsapp-web.js 1.34.2 » Source: structures/Channel.js
+ whatsapp-web.js 1.34.3 » Source: structures/Channel.js
@@ -15,7 +15,7 @@
@@ -421,7 +421,7 @@ module.exports = Channel;
diff --git a/docs/structures_Chat.js.html b/docs/structures_Chat.js.html
index bd764ba..6025d2c 100644
--- a/docs/structures_Chat.js.html
+++ b/docs/structures_Chat.js.html
@@ -4,7 +4,7 @@
- whatsapp-web.js 1.34.2 » Source: structures/Chat.js
+ whatsapp-web.js 1.34.3 » Source: structures/Chat.js
@@ -15,7 +15,7 @@
@@ -368,7 +368,7 @@ module.exports = Chat;
diff --git a/docs/structures_ClientInfo.js.html b/docs/structures_ClientInfo.js.html
index 598b0ff..e458283 100644
--- a/docs/structures_ClientInfo.js.html
+++ b/docs/structures_ClientInfo.js.html
@@ -4,7 +4,7 @@
- whatsapp-web.js 1.34.2 » Source: structures/ClientInfo.js
+ whatsapp-web.js 1.34.3 » 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 1a0a1b0..10d6597 100644
--- a/docs/structures_Contact.js.html
+++ b/docs/structures_Contact.js.html
@@ -4,7 +4,7 @@
- whatsapp-web.js 1.34.2 » Source: structures/Contact.js
+ whatsapp-web.js 1.34.3 » Source: structures/Contact.js
@@ -15,7 +15,7 @@
@@ -233,7 +233,14 @@ class Contact extends Base {
async getCommonGroups() {
return await this.client.getCommonGroups(this.id._serialized);
}
-
+
+ /**
+ * Gets the Contact's current status broadcast.
+ * @returns {Promise<Broadcast>}
+ */
+ async getBroadcast() {
+ return await this.client.getBroadcastById(this.id._serialized);
+ }
}
module.exports = Contact;
@@ -247,7 +254,7 @@ module.exports = Contact;
diff --git a/docs/structures_GroupChat.js.html b/docs/structures_GroupChat.js.html
index 2624ad3..66639bc 100644
--- a/docs/structures_GroupChat.js.html
+++ b/docs/structures_GroupChat.js.html
@@ -4,7 +4,7 @@
- whatsapp-web.js 1.34.2 » Source: structures/GroupChat.js
+ whatsapp-web.js 1.34.3 » Source: structures/GroupChat.js
@@ -15,7 +15,7 @@
@@ -328,12 +328,12 @@ class GroupChat extends Chat {
*/
async setAddMembersAdminsOnly(adminsOnly=true) {
const success = await this.client.pupPage.evaluate(async (groupId, adminsOnly) => {
- const chatWid = window.Store.WidFactory.createWid(groupId);
+ const chat = await window.WWebJS.getChat(groupId, { getAsModel: false });
try {
- const response = await window.Store.GroupUtils.setGroupMemberAddMode(chatWid, 'member_add_mode', adminsOnly ? 0 : 1);
- return response.name === 'SetMemberAddModeResponseSuccess';
+ await window.Store.GroupUtils.setGroupProperty(chat, 'member_add_mode', adminsOnly ? 0 : 1);
+ return true;
} catch (err) {
- if(err.name === 'SmaxParsingFailure') return false;
+ if(err.name === 'ServerStatusCodeError') return false;
throw err;
}
}, this.id._serialized, adminsOnly);
@@ -349,9 +349,9 @@ class GroupChat extends Chat {
*/
async setMessagesAdminsOnly(adminsOnly=true) {
const success = await this.client.pupPage.evaluate(async (chatId, adminsOnly) => {
- const chatWid = window.Store.WidFactory.createWid(chatId);
+ const chat = await window.WWebJS.getChat(chatId, { getAsModel: false });
try {
- await window.Store.GroupUtils.setGroupProperty(chatWid, 'announcement', adminsOnly ? 1 : 0);
+ await window.Store.GroupUtils.setGroupProperty(chat, 'announcement', adminsOnly ? 1 : 0);
return true;
} catch (err) {
if(err.name === 'ServerStatusCodeError') return false;
@@ -372,9 +372,9 @@ class GroupChat extends Chat {
*/
async setInfoAdminsOnly(adminsOnly=true) {
const success = await this.client.pupPage.evaluate(async (chatId, adminsOnly) => {
- const chatWid = window.Store.WidFactory.createWid(chatId);
+ const chat = await window.WWebJS.getChat(chatId, { getAsModel: false });
try {
- await window.Store.GroupUtils.setGroupProperty(chatWid, 'restrict', adminsOnly ? 1 : 0);
+ await window.Store.GroupUtils.setGroupProperty(chat, 'restrict', adminsOnly ? 1 : 0);
return true;
} catch (err) {
if(err.name === 'ServerStatusCodeError') return false;
@@ -387,7 +387,7 @@ class GroupChat extends Chat {
this.groupMetadata.restrict = adminsOnly;
return true;
}
-
+
/**
* Deletes the group's picture.
* @returns {Promise<boolean>} Returns true if the picture was properly deleted. This can return false if the user does not have the necessary permissions.
@@ -524,7 +524,7 @@ module.exports = GroupChat;
diff --git a/docs/structures_GroupNotification.js.html b/docs/structures_GroupNotification.js.html
index bb11868..2799fb1 100644
--- a/docs/structures_GroupNotification.js.html
+++ b/docs/structures_GroupNotification.js.html
@@ -4,7 +4,7 @@
- whatsapp-web.js 1.34.2 » Source: structures/GroupNotification.js
+ whatsapp-web.js 1.34.3 » 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 a215358..729e65b 100644
--- a/docs/structures_Label.js.html
+++ b/docs/structures_Label.js.html
@@ -4,7 +4,7 @@
- whatsapp-web.js 1.34.2 » Source: structures/Label.js
+ whatsapp-web.js 1.34.3 » 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 d1659d1..d269748 100644
--- a/docs/structures_List.js.html
+++ b/docs/structures_List.js.html
@@ -4,7 +4,7 @@
- whatsapp-web.js 1.34.2 » Source: structures/List.js
+ whatsapp-web.js 1.34.3 » 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 5a6906c..bc43d1e 100644
--- a/docs/structures_Location.js.html
+++ b/docs/structures_Location.js.html
@@ -4,7 +4,7 @@
- whatsapp-web.js 1.34.2 » Source: structures/Location.js
+ whatsapp-web.js 1.34.3 » Source: structures/Location.js
@@ -15,7 +15,7 @@
@@ -100,7 +100,7 @@ module.exports = Location;
diff --git a/docs/structures_Message.js.html b/docs/structures_Message.js.html
index 7dff9de..e403f3d 100644
--- a/docs/structures_Message.js.html
+++ b/docs/structures_Message.js.html
@@ -4,7 +4,7 @@
- whatsapp-web.js 1.34.2 » Source: structures/Message.js
+ whatsapp-web.js 1.34.3 » Source: structures/Message.js
@@ -15,7 +15,7 @@
@@ -480,7 +480,9 @@ class Message extends Base {
const result = await this.client.pupPage.evaluate(async (msgId) => {
const msg = window.Store.Msg.get(msgId) || (await window.Store.Msg.getMessagesById([msgId]))?.messages?.[0];
- if (!msg || !msg.mediaData) {
+
+ // REUPLOADING mediaStage means the media is expired and the download button is spinning, cannot be downloaded now
+ if (!msg || !msg.mediaData || msg.mediaData.mediaStage === 'REUPLOADING') {
return null;
}
if (msg.mediaData.mediaStage != 'RESOLVED') {
@@ -497,6 +499,10 @@ class Message extends Base {
}
try {
+ const mockQpl = {
+ addAnnotations: function() { return this; },
+ addPoint: function() { return this; }
+ };
const decryptedMedia = await window.Store.DownloadManager.downloadAndMaybeDecrypt({
directPath: msg.directPath,
encFilehash: msg.encFilehash,
@@ -504,7 +510,8 @@ class Message extends Base {
mediaKey: msg.mediaKey,
mediaKeyTimestamp: msg.mediaKeyTimestamp,
type: msg.type,
- signal: (new AbortController).signal
+ signal: (new AbortController).signal,
+ downloadQpl: mockQpl
});
const data = await window.WWebJS.arrayBufferToBase64Async(decryptedMedia);
@@ -593,7 +600,7 @@ class Message extends Base {
*/
async unpin() {
return await this.client.pupPage.evaluate(async (msgId) => {
- return await window.WWebJS.pinUnpinMsgAction(msgId, 2);
+ return await window.WWebJS.pinUnpinMsgAction(msgId, 2, 0);
}, this.id._serialized);
}
@@ -780,6 +787,32 @@ class Message extends Base {
async getPollVotes() {
return await this.client.getPollVotes(this.id._serialized);
}
+
+ /**
+ * Send votes to the poll message
+ * @param {Array<string>} selectedOptions Array of options selected.
+ * @returns {Promise}
+ */
+ async vote(selectedOptions) {
+ if (this.type != MessageTypes.POLL_CREATION) throw 'Invalid usage! Can only be used with a pollCreation message';
+
+ await this.client.pupPage.evaluate(async (messageId, votes) => {
+ if (!messageId) return null;
+ if (!Array.isArray(votes)) votes = [votes];
+ let localIdSet = new Set();
+ const msg =
+ window.Store.Msg.get(messageId) || (await window.Store.Msg.getMessagesById([messageId]))?.messages?.[0];
+ if (!msg) return null;
+
+ msg.pollOptions.forEach(a => {
+ for (const option of votes) {
+ if (a.name === option) localIdSet.add(a.localId);
+ }
+ });
+
+ await window.Store.PollsSendVote.sendVote(msg, localIdSet);
+ }, this.id._serialized, selectedOptions);
+ }
}
module.exports = Message;
@@ -793,7 +826,7 @@ module.exports = Message;
diff --git a/docs/structures_MessageMedia.js.html b/docs/structures_MessageMedia.js.html
index 570735e..79e9f3b 100644
--- a/docs/structures_MessageMedia.js.html
+++ b/docs/structures_MessageMedia.js.html
@@ -4,7 +4,7 @@
- whatsapp-web.js 1.34.2 » Source: structures/MessageMedia.js
+ whatsapp-web.js 1.34.3 » 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 09dfcff..3007d0d 100644
--- a/docs/structures_Order.js.html
+++ b/docs/structures_Order.js.html
@@ -4,7 +4,7 @@
- whatsapp-web.js 1.34.2 » Source: structures/Order.js
+ whatsapp-web.js 1.34.3 » 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 ec56d0d..9ea42c4 100644
--- a/docs/structures_Payment.js.html
+++ b/docs/structures_Payment.js.html
@@ -4,7 +4,7 @@
- whatsapp-web.js 1.34.2 » Source: structures/Payment.js
+ whatsapp-web.js 1.34.3 » Source: structures/Payment.js
@@ -15,7 +15,7 @@
@@ -118,7 +118,7 @@ module.exports = Payment;
diff --git a/docs/structures_Poll.js.html b/docs/structures_Poll.js.html
index ec382d1..a61d882 100644
--- a/docs/structures_Poll.js.html
+++ b/docs/structures_Poll.js.html
@@ -4,7 +4,7 @@
- whatsapp-web.js 1.34.2 » Source: structures/Poll.js
+ whatsapp-web.js 1.34.3 » Source: structures/Poll.js
@@ -15,7 +15,7 @@
@@ -83,7 +83,7 @@ module.exports = Poll;
diff --git a/docs/structures_PollVote.js.html b/docs/structures_PollVote.js.html
index 90f9faf..371df7c 100644
--- a/docs/structures_PollVote.js.html
+++ b/docs/structures_PollVote.js.html
@@ -4,7 +4,7 @@
- whatsapp-web.js 1.34.2 » Source: structures/PollVote.js
+ whatsapp-web.js 1.34.3 » Source: structures/PollVote.js
@@ -15,7 +15,7 @@
@@ -114,7 +114,7 @@ module.exports = PollVote;
diff --git a/docs/structures_PrivateChat.js.html b/docs/structures_PrivateChat.js.html
index 2474f51..d6d9718 100644
--- a/docs/structures_PrivateChat.js.html
+++ b/docs/structures_PrivateChat.js.html
@@ -4,7 +4,7 @@
- whatsapp-web.js 1.34.2 » Source: structures/PrivateChat.js
+ whatsapp-web.js 1.34.3 » 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 bc41f38..87ef3e4 100644
--- a/docs/structures_PrivateContact.js.html
+++ b/docs/structures_PrivateContact.js.html
@@ -4,7 +4,7 @@
- whatsapp-web.js 1.34.2 » Source: structures/PrivateContact.js
+ whatsapp-web.js 1.34.3 » 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 3b7218b..17a36af 100644
--- a/docs/structures_Product.js.html
+++ b/docs/structures_Product.js.html
@@ -4,7 +4,7 @@
- whatsapp-web.js 1.34.2 » Source: structures/Product.js
+ whatsapp-web.js 1.34.3 » 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 07a9d46..b1de37d 100644
--- a/docs/structures_ProductMetadata.js.html
+++ b/docs/structures_ProductMetadata.js.html
@@ -4,7 +4,7 @@
- whatsapp-web.js 1.34.2 » Source: structures/ProductMetadata.js
+ whatsapp-web.js 1.34.3 » 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 87dee91..50175a6 100644
--- a/docs/structures_Reaction.js.html
+++ b/docs/structures_Reaction.js.html
@@ -4,7 +4,7 @@
- whatsapp-web.js 1.34.2 » Source: structures/Reaction.js
+ whatsapp-web.js 1.34.3 » Source: structures/Reaction.js
@@ -15,7 +15,7 @@
@@ -107,7 +107,7 @@ module.exports = Reaction;
diff --git a/docs/structures_ScheduledEvent.js.html b/docs/structures_ScheduledEvent.js.html
index c31dcf8..e477a32 100644
--- a/docs/structures_ScheduledEvent.js.html
+++ b/docs/structures_ScheduledEvent.js.html
@@ -4,7 +4,7 @@
- whatsapp-web.js 1.34.2 » Source: structures/ScheduledEvent.js
+ whatsapp-web.js 1.34.3 » Source: structures/ScheduledEvent.js
@@ -15,7 +15,7 @@
@@ -37,7 +37,7 @@
* @property {?string} description The scheduled event description
* @property {?Date} endTime The end time of the event
* @property {?string} location The location of the event
- * @property {?string} callType The type of a WhatsApp call link to generate, valid values are: `video` | `voice`
+ * @property {?string} callType The type of a WhatsApp call link to generate, valid values are: `video` | `voice` | `none`
* @property {boolean} [isEventCanceled = false] Indicates if a scheduled event should be sent as an already canceled
* @property {?Array<number>} messageSecret The custom message secret, can be used as an event ID. NOTE: it has to be a unique vector with a length of 32
*/
@@ -89,10 +89,10 @@ class ScheduledEvent {
}(`Empty '${propName}' parameter value is provided.`);
}
- if (propName === 'callType' && propValue && !['video', 'voice'].includes(propValue)) {
+ if (propName === 'callType' && propValue && !['video', 'voice', 'none'].includes(propValue)) {
throw new class CreateScheduledEventError extends Error {
constructor(m) { super(m); }
- }(`Invalid '${propName}' parameter value is provided. Valid values are: 'voice' | 'video'.`);
+ }(`Invalid '${propName}' parameter value is provided. Valid values are: 'voice' | 'video' | 'none'.`);
}
return propValue;
@@ -110,7 +110,7 @@ module.exports = ScheduledEvent;
diff --git a/docs/util_Constants.js.html b/docs/util_Constants.js.html
index c5da4d0..446f9ca 100644
--- a/docs/util_Constants.js.html
+++ b/docs/util_Constants.js.html
@@ -4,7 +4,7 @@
- whatsapp-web.js 1.34.2 » Source: util/Constants.js
+ whatsapp-web.js 1.34.3 » Source: util/Constants.js
@@ -15,7 +15,7 @@
@@ -116,6 +116,7 @@ exports.MessageTypes = {
AUDIO: 'audio',
VOICE: 'ptt',
IMAGE: 'image',
+ ALBUM: 'album',
VIDEO: 'video',
DOCUMENT: 'document',
STICKER: 'sticker',
@@ -161,6 +162,8 @@ exports.GroupNotificationTypes = {
INVITE: 'invite',
REMOVE: 'remove',
LEAVE: 'leave',
+ PROMOTE: 'promote',
+ DEMOTE: 'demote',
SUBJECT: 'subject',
DESCRIPTION: 'description',
PICTURE: 'picture',
@@ -222,7 +225,7 @@ exports.MessageAck = {
diff --git a/docs/util_Injected_LegacyStore.js.html b/docs/util_Injected_LegacyStore.js.html
index b36adce..2e882d1 100644
--- a/docs/util_Injected_LegacyStore.js.html
+++ b/docs/util_Injected_LegacyStore.js.html
@@ -4,7 +4,7 @@
- whatsapp-web.js 1.34.2 » Source: util/Injected/LegacyStore.js
+ whatsapp-web.js 1.34.3 » Source: util/Injected/LegacyStore.js
@@ -15,7 +15,7 @@
@@ -184,7 +184,7 @@ exports.ExposeLegacyStore = () => {
diff --git a/docs/util_Injected_Store.js.html b/docs/util_Injected_Store.js.html
index 60dc705..d316727 100644
--- a/docs/util_Injected_Store.js.html
+++ b/docs/util_Injected_Store.js.html
@@ -4,7 +4,7 @@
- whatsapp-web.js 1.34.2 » Source: util/Injected/Store.js
+ whatsapp-web.js 1.34.3 » Source: util/Injected/Store.js
@@ -15,7 +15,7 @@
@@ -85,6 +85,7 @@ exports.ExposeStore = () => {
window.Store.MediaObject = window.require('WAWebMediaStorage');
window.Store.MediaTypes = window.require('WAWebMmsMediaTypes');
window.Store.MediaUpload = window.require('WAWebMediaMmsV4Upload');
+ window.Store.MediaUpdate = window.require('WAWebMediaUpdateMsg');
window.Store.MsgKey = window.require('WAWebMsgKey');
window.Store.OpaqueData = window.require('WAWebMediaOpaqueData');
window.Store.QueryProduct = window.require('WAWebBizProductCatalogBridge');
@@ -93,9 +94,14 @@ exports.ExposeStore = () => {
window.Store.SendDelete = window.require('WAWebDeleteChatAction');
window.Store.SendMessage = window.require('WAWebSendMsgChatAction');
window.Store.EditMessage = window.require('WAWebSendMessageEditAction');
+ window.Store.MediaDataUtils = window.require('WAWebMediaDataUtils');
+ window.Store.BlobCache = window.require('WAWebMediaInMemoryBlobCache');
window.Store.SendSeen = window.require('WAWebUpdateUnreadChatAction');
window.Store.User = window.require('WAWebUserPrefsMeUser');
- window.Store.ContactMethods = window.require('WAWebContactGetters');
+ window.Store.ContactMethods = {
+ ...window.require('WAWebContactGetters'),
+ ...window.require('WAWebFrontendContactGetters')
+ };
window.Store.UserConstructor = window.require('WAWebWid');
window.Store.Validators = window.require('WALinkify');
window.Store.WidFactory = window.require('WAWebWidFactory');
@@ -103,7 +109,6 @@ exports.ExposeStore = () => {
window.Store.PresenceUtils = window.require('WAWebPresenceChatAction');
window.Store.ChatState = window.require('WAWebChatStateBridge');
window.Store.findCommonGroups = window.require('WAWebFindCommonGroupsContactAction').findCommonGroups;
- window.Store.StatusUtils = window.require('WAWebContactStatusBridge');
window.Store.ConversationMsgs = window.require('WAWebChatLoadMessages');
window.Store.sendReactionToMsg = window.require('WAWebSendReactionMsgAction').sendReactionToMsg;
window.Store.createOrUpdateReactionsModule = window.require('WAWebDBCreateOrUpdateReactions');
@@ -134,8 +139,9 @@ exports.ExposeStore = () => {
window.Store.FindOrCreateChat = window.require('WAWebFindChatAction');
window.Store.CustomerNoteUtils = window.require('WAWebNoteAction');
window.Store.BusinessGatingUtils = window.require('WAWebBizGatingUtils');
- window.Store.PollsVotesSchema = require('WAWebPollsVotesSchema');
-
+ window.Store.PollsVotesSchema = window.require('WAWebPollsVotesSchema');
+ window.Store.PollsSendVote = window.require('WAWebPollsSendVoteMsgAction');
+
window.Store.Settings = {
...window.require('WAWebUserPrefsGeneral'),
...window.require('WAWebUserPrefsNotifications'),
@@ -170,7 +176,8 @@ exports.ExposeStore = () => {
...window.require('WAWebGroupCreateJob'),
...window.require('WAWebGroupModifyInfoJob'),
...window.require('WAWebExitGroupAction'),
- ...window.require('WAWebContactProfilePicThumbBridge')
+ ...window.require('WAWebContactProfilePicThumbBridge'),
+ ...window.require('WAWebSetPropertyGroupAction')
};
window.Store.GroupParticipants = {
...window.require('WAWebModifyParticipantsGroupAction'),
@@ -224,6 +231,12 @@ exports.ExposeStore = () => {
...window.require('WAWebSaveContactAction'),
...window.require('WAWebDeleteContactAction')
};
+ window.Store.StatusUtils = {
+ ...window.require('WAWebContactStatusBridge'),
+ ...window.require('WAWebSendStatusMsgAction'),
+ ...window.require('WAWebRevokeStatusAction'),
+ ...window.require('WAWebStatusGatingUtils')
+ };
if (!window.Store.Chat._find || !window.Store.Chat.findImpl) {
window.Store.Chat._find = e => {
@@ -289,7 +302,7 @@ exports.ExposeStore = () => {
diff --git a/docs/util_InterfaceController.js.html b/docs/util_InterfaceController.js.html
index 7e7c5e1..db59d4e 100644
--- a/docs/util_InterfaceController.js.html
+++ b/docs/util_InterfaceController.js.html
@@ -4,7 +4,7 @@
- whatsapp-web.js 1.34.2 » Source: util/InterfaceController.js
+ whatsapp-web.js 1.34.3 » Source: util/InterfaceController.js
@@ -15,7 +15,7 @@
@@ -45,9 +45,9 @@ class InterfaceController {
* @param {string} chatId ID of the chat window that will be opened
*/
async openChatWindow(chatId) {
- await this.pupPage.evaluate(async (chatId) => {
+ return await this.pupPage.evaluate(async (chatId) => {
const chat = await window.WWebJS.getChat(chatId, { getAsModel: false });
- await window.Store.Cmd.openChatBottom(chat);
+ return await window.Store.Cmd.openChatBottom({'chat':chat});
}, chatId);
}
@@ -165,7 +165,7 @@ module.exports = InterfaceController;
diff --git a/docs/util_Puppeteer.js.html b/docs/util_Puppeteer.js.html
index 33d577e..97435e2 100644
--- a/docs/util_Puppeteer.js.html
+++ b/docs/util_Puppeteer.js.html
@@ -4,7 +4,7 @@
- whatsapp-web.js 1.34.2 » Source: util/Puppeteer.js
+ whatsapp-web.js 1.34.3 » Source: util/Puppeteer.js
@@ -15,7 +15,7 @@
@@ -62,7 +62,7 @@ module.exports = {exposeFunctionIfAbsent};
diff --git a/docs/util_Util.js.html b/docs/util_Util.js.html
index b6bb6ea..6357b02 100644
--- a/docs/util_Util.js.html
+++ b/docs/util_Util.js.html
@@ -4,7 +4,7 @@
- whatsapp-web.js 1.34.2 » Source: util/Util.js
+ whatsapp-web.js 1.34.3 » Source: util/Util.js
@@ -15,7 +15,7 @@
@@ -225,7 +225,7 @@ module.exports = Util;
diff --git a/docs/webCache_LocalWebCache.js.html b/docs/webCache_LocalWebCache.js.html
index 53afdb6..8b5e2d9 100644
--- a/docs/webCache_LocalWebCache.js.html
+++ b/docs/webCache_LocalWebCache.js.html
@@ -4,7 +4,7 @@
- whatsapp-web.js 1.34.2 » Source: webCache/LocalWebCache.js
+ whatsapp-web.js 1.34.3 » Source: webCache/LocalWebCache.js
@@ -15,7 +15,7 @@
@@ -79,7 +79,7 @@ module.exports = LocalWebCache;
diff --git a/docs/webCache_RemoteWebCache.js.html b/docs/webCache_RemoteWebCache.js.html
index 27ab3c8..d3a5168 100644
--- a/docs/webCache_RemoteWebCache.js.html
+++ b/docs/webCache_RemoteWebCache.js.html
@@ -4,7 +4,7 @@
- whatsapp-web.js 1.34.2 » Source: webCache/RemoteWebCache.js
+ whatsapp-web.js 1.34.3 » Source: webCache/RemoteWebCache.js
@@ -15,7 +15,7 @@
@@ -78,7 +78,7 @@ module.exports = RemoteWebCache;
diff --git a/docs/webCache_WebCache.js.html b/docs/webCache_WebCache.js.html
index 78b323a..633d804 100644
--- a/docs/webCache_WebCache.js.html
+++ b/docs/webCache_WebCache.js.html
@@ -4,7 +4,7 @@
- whatsapp-web.js 1.34.2 » Source: webCache/WebCache.js
+ whatsapp-web.js 1.34.3 » Source: webCache/WebCache.js
@@ -15,7 +15,7 @@
@@ -52,7 +52,7 @@ module.exports = {