@open-wa/wa-automate 4.33.1 → 4.33.2
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
CHANGED
@@ -523,9 +523,11 @@ export declare class Client {
|
|
523
523
|
* @param groupId group chat id: `xxxxx@g.us`
|
524
524
|
* @param content text message to add under all of the tags
|
525
525
|
* @param hideTags Removes all tags within the message
|
526
|
+
* @param formatting The formatting of the tags. Use @mention to indicate the actual tag. @default `@mention `
|
527
|
+
* @param messageBeforeTags set to `true` to show the message before all of the tags
|
526
528
|
* @returns `Promise<MessageId>`
|
527
529
|
*/
|
528
|
-
tagEveryone(groupId: GroupChatId, content: Content, hideTags?: boolean): Promise<boolean | MessageId>;
|
530
|
+
tagEveryone(groupId: GroupChatId, content: Content, hideTags?: boolean, formatting?: string, messageBeforeTags?: boolean): Promise<boolean | MessageId>;
|
529
531
|
/**
|
530
532
|
* Sends a link to a chat that includes a link preview.
|
531
533
|
* @param thumb The base 64 data of the image you want to use as the thunbnail. This should be no more than 200x200px. Note: Dont need data url on this param
|
package/dist/api/Client.js
CHANGED
@@ -1333,11 +1333,13 @@ class Client {
|
|
1333
1333
|
* @param groupId group chat id: `xxxxx@g.us`
|
1334
1334
|
* @param content text message to add under all of the tags
|
1335
1335
|
* @param hideTags Removes all tags within the message
|
1336
|
+
* @param formatting The formatting of the tags. Use @mention to indicate the actual tag. @default `@mention `
|
1337
|
+
* @param messageBeforeTags set to `true` to show the message before all of the tags
|
1336
1338
|
* @returns `Promise<MessageId>`
|
1337
1339
|
*/
|
1338
|
-
tagEveryone(groupId, content, hideTags) {
|
1340
|
+
tagEveryone(groupId, content, hideTags, formatting, messageBeforeTags) {
|
1339
1341
|
return __awaiter(this, void 0, void 0, function* () {
|
1340
|
-
return yield this.pup(({ groupId, content, hideTags }) => WAPI.tagEveryone(groupId, content, hideTags), { groupId, content, hideTags });
|
1342
|
+
return yield this.pup(({ groupId, content, hideTags, formatting, messageBeforeTags }) => WAPI.tagEveryone(groupId, content, hideTags, formatting, messageBeforeTags), { groupId, content, hideTags, formatting, messageBeforeTags });
|
1341
1343
|
});
|
1342
1344
|
}
|
1343
1345
|
/**
|
@@ -1,4 +1,4 @@
|
|
1
|
-
import { ChatId, MessageId } from "./aliases";
|
1
|
+
import { ChatId, ContactId, MessageId } from "./aliases";
|
2
2
|
import { Button, Row, Section } from "./button";
|
3
3
|
import { Chat } from "./chat";
|
4
4
|
import { Contact } from "./contact";
|
@@ -84,7 +84,7 @@ export interface Message {
|
|
84
84
|
/**
|
85
85
|
* An array of all mentioned numbers in this message.
|
86
86
|
*/
|
87
|
-
mentionedJidList:
|
87
|
+
mentionedJidList: ContactId[];
|
88
88
|
/**
|
89
89
|
* If the message is of a media type, it may also have a caption
|
90
90
|
*/
|
package/package.json
CHANGED