@open-wa/wa-automate 4.42.0 → 4.42.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/api/Client.d.ts +3 -1
- package/dist/api/Client.js +6 -4
- package/package.json +1 -1
package/dist/api/Client.d.ts
CHANGED
@@ -570,8 +570,10 @@ export declare class Client {
|
|
570
570
|
* @param to chat id: `xxxxx@c.us`
|
571
571
|
* @param content text message
|
572
572
|
* @param replyMessageId id of message to reply to
|
573
|
+
* @param hideTags Removes all tags within the message
|
574
|
+
* @param mentions You can optionally add an array of contact IDs to tag only specific people
|
573
575
|
*/
|
574
|
-
sendReplyWithMentions(to: ChatId, content: Content, replyMessageId: MessageId): Promise<boolean | MessageId>;
|
576
|
+
sendReplyWithMentions(to: ChatId, content: Content, replyMessageId: MessageId, hideTags?: boolean, mentions?: ContactId[]): Promise<boolean | MessageId>;
|
575
577
|
/**
|
576
578
|
* [REQUIRES AN INSIDERS LICENSE-KEY](https://gum.co/open-wa?tier=Insiders%20Program)
|
577
579
|
*
|
package/dist/api/Client.js
CHANGED
@@ -1454,15 +1454,17 @@ class Client {
|
|
1454
1454
|
* @param to chat id: `xxxxx@c.us`
|
1455
1455
|
* @param content text message
|
1456
1456
|
* @param replyMessageId id of message to reply to
|
1457
|
+
* @param hideTags Removes all tags within the message
|
1458
|
+
* @param mentions You can optionally add an array of contact IDs to tag only specific people
|
1457
1459
|
*/
|
1458
|
-
sendReplyWithMentions(to, content, replyMessageId) {
|
1460
|
+
sendReplyWithMentions(to, content, replyMessageId, hideTags, mentions) {
|
1459
1461
|
return __awaiter(this, void 0, void 0, function* () {
|
1460
1462
|
//remove all @c.us from the content
|
1461
1463
|
content = content.replace(/@c.us/, "");
|
1462
|
-
return yield this.pup(({ to, content, replyMessageId }) => {
|
1464
|
+
return yield this.pup(({ to, content, replyMessageId, hideTags, mentions }) => {
|
1463
1465
|
WAPI.sendSeen(to);
|
1464
|
-
return WAPI.sendReplyWithMentions(to, content, replyMessageId);
|
1465
|
-
}, { to, content, replyMessageId });
|
1466
|
+
return WAPI.sendReplyWithMentions(to, content, replyMessageId, hideTags, mentions);
|
1467
|
+
}, { to, content, replyMessageId, hideTags, mentions });
|
1466
1468
|
});
|
1467
1469
|
}
|
1468
1470
|
/**
|
package/package.json
CHANGED