@open-wa/wa-automate 4.35.8 → 4.35.9
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/api/Client.d.ts +2 -3
- package/dist/api/Client.js +5 -6
- package/package.json +1 -1
package/dist/api/Client.d.ts
CHANGED
@@ -467,13 +467,12 @@ export declare class Client {
|
|
467
467
|
* "@4474747474747 how are you?"
|
468
468
|
* Basically, add a @ symbol before the number of the contact you want to mention.
|
469
469
|
*
|
470
|
-
* Please note that the hideTag parameter only works with an Insider's License Key
|
471
|
-
*
|
472
470
|
* @param to chat id: `xxxxx@c.us`
|
473
471
|
* @param content text message
|
474
472
|
* @param hideTags Removes all tags within the message
|
473
|
+
* @param mentions You can optionally add an array of contact IDs to tag only specific people
|
475
474
|
*/
|
476
|
-
sendTextWithMentions(to: ChatId, content: Content, hideTags?: boolean): Promise<boolean | MessageId>;
|
475
|
+
sendTextWithMentions(to: ChatId, content: Content, hideTags?: boolean, mentions?: ContactId[]): Promise<boolean | MessageId>;
|
477
476
|
/**
|
478
477
|
* [UNTESTED - REQUIRES FEEDBACK]
|
479
478
|
* Sends a payment request message to given chat
|
package/dist/api/Client.js
CHANGED
@@ -1243,20 +1243,19 @@ class Client {
|
|
1243
1243
|
* "@4474747474747 how are you?"
|
1244
1244
|
* Basically, add a @ symbol before the number of the contact you want to mention.
|
1245
1245
|
*
|
1246
|
-
* Please note that the hideTag parameter only works with an Insider's License Key
|
1247
|
-
*
|
1248
1246
|
* @param to chat id: `xxxxx@c.us`
|
1249
1247
|
* @param content text message
|
1250
1248
|
* @param hideTags Removes all tags within the message
|
1249
|
+
* @param mentions You can optionally add an array of contact IDs to tag only specific people
|
1251
1250
|
*/
|
1252
|
-
sendTextWithMentions(to, content, hideTags) {
|
1251
|
+
sendTextWithMentions(to, content, hideTags, mentions) {
|
1253
1252
|
return __awaiter(this, void 0, void 0, function* () {
|
1254
1253
|
//remove all @c.us from the content
|
1255
1254
|
content = content.replace(/@c.us/, "");
|
1256
|
-
return yield this.pup(({ to, content, hideTags }) => {
|
1255
|
+
return yield this.pup(({ to, content, hideTags, mentions }) => {
|
1257
1256
|
WAPI.sendSeen(to);
|
1258
|
-
return WAPI.sendMessageWithMentions(to, content, hideTags);
|
1259
|
-
}, { to, content, hideTags });
|
1257
|
+
return WAPI.sendMessageWithMentions(to, content, hideTags, mentions);
|
1258
|
+
}, { to, content, hideTags, mentions });
|
1260
1259
|
});
|
1261
1260
|
}
|
1262
1261
|
/**
|
package/package.json
CHANGED