@wppconnect/wa-js 2.28.1 → 3.0.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/CHANGELOG.md +6 -1
- package/README.md +2 -2
- package/dist/chat/events/eventTypes.d.ts +8 -0
- package/dist/chat/events/index.d.ts +1 -0
- package/dist/{whatsapp/misc/Locale.d.ts → chat/events/registerEditedMessageEvent.d.ts} +0 -8
- package/dist/chat/functions/index.d.ts +1 -0
- package/dist/chat/functions/sendGroupInviteMessage.d.ts +56 -0
- package/dist/conn/index.d.ts +1 -0
- package/dist/conn/patch.d.ts +16 -0
- package/dist/labels/functions/addNewLabel.d.ts +4 -3
- package/dist/labels/functions/deleteLabel.d.ts +1 -1
- package/dist/labels/functions/editLabel.d.ts +37 -0
- package/dist/labels/functions/getLabelColorPalette.d.ts +2 -2
- package/dist/labels/functions/index.d.ts +1 -0
- package/dist/labels/types.d.ts +1 -0
- package/dist/profile/functions/getMyProfileName.d.ts +26 -0
- package/dist/profile/functions/index.d.ts +1 -0
- package/dist/webpack/index.d.ts +9 -0
- package/dist/whatsapp/collections/LabelCollection.d.ts +1 -0
- package/dist/whatsapp/functions/colorIndexToHex.d.ts +20 -0
- package/dist/whatsapp/functions/getNextLabelId.d.ts +18 -0
- package/dist/whatsapp/functions/getPushname.d.ts +19 -0
- package/dist/whatsapp/functions/index.d.ts +5 -0
- package/dist/whatsapp/functions/labelAddAction.d.ts +20 -0
- package/dist/whatsapp/functions/setArchive.d.ts +9 -0
- package/dist/whatsapp/misc/IsOfficialClient.d.ts +22 -0
- package/dist/whatsapp/misc/index.d.ts +1 -1
- package/dist/whatsapp/models/MsgModel.d.ts +1 -0
- package/dist/wppconnect-wa.js +1 -1
- package/dist/wppconnect-wa.js.LICENSE.txt +16 -0
- package/package.json +24 -24
package/CHANGELOG.md
CHANGED
|
@@ -1,4 +1,9 @@
|
|
|
1
|
-
##
|
|
1
|
+
## 3.0.1 (2024-03-25)
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
### Bug Fixes
|
|
5
|
+
|
|
6
|
+
* Fixed isOfficialClient check ([#1769](https://github.com/wppconnect-team/wa-js/issues/1769)) ([88f1f0e](https://github.com/wppconnect-team/wa-js/commit/88f1f0e6daf18b0492ceffb6274adef02323dc35))
|
|
2
7
|
|
|
3
8
|
|
|
4
9
|
|
package/README.md
CHANGED
|
@@ -99,7 +99,7 @@ import * as playwright from 'playwright-chromium';
|
|
|
99
99
|
|
|
100
100
|
async function start() {
|
|
101
101
|
const browser = await playwright.chromium.launch();
|
|
102
|
-
const page = browser.newPage();
|
|
102
|
+
const page = await browser.newPage();
|
|
103
103
|
|
|
104
104
|
await page.goto('https://web.whatsapp.com/');
|
|
105
105
|
|
|
@@ -112,7 +112,7 @@ async function start() {
|
|
|
112
112
|
|
|
113
113
|
// Evaluating code: See https://playwright.dev/docs/evaluating/
|
|
114
114
|
const isAuthenticated: string = await page.evaluate(() =>
|
|
115
|
-
WPP.
|
|
115
|
+
WPP.conn.isAuthenticated()
|
|
116
116
|
);
|
|
117
117
|
|
|
118
118
|
// Sending message: See https://playwright.dev/docs/evaluating/
|
|
@@ -13,12 +13,4 @@
|
|
|
13
13
|
* See the License for the specific language governing permissions and
|
|
14
14
|
* limitations under the License.
|
|
15
15
|
*/
|
|
16
|
-
declare class LocaleClass {
|
|
17
|
-
}
|
|
18
|
-
/** @whatsapp 14296
|
|
19
|
-
* @whatsapp 43725 >= 2.2204.13
|
|
20
|
-
* @whatsapp 914296 >= 2.2222.8
|
|
21
|
-
* @whatsapp 568064 >= 2.2230.8
|
|
22
|
-
*/
|
|
23
|
-
export declare const Locale: LocaleClass;
|
|
24
16
|
export {};
|
|
@@ -55,6 +55,7 @@ export { prepareRawMessage } from './prepareRawMessage';
|
|
|
55
55
|
export { requestPhoneNumber } from './requestPhoneNumber';
|
|
56
56
|
export { PoolMessageOptions, sendCreatePollMessage, } from './sendCreatePollMessage';
|
|
57
57
|
export { AudioMessageOptions, AutoDetectMessageOptions, DocumentMessageOptions, FileMessageOptions, ImageMessageOptions, sendFileMessage, StickerMessageOptions, VideoMessageOptions, } from './sendFileMessage';
|
|
58
|
+
export { GroupInviteMessage, sendGroupInviteMessage, } from './sendGroupInviteMessage';
|
|
58
59
|
export { ListMessageOptions, sendListMessage } from './sendListMessage';
|
|
59
60
|
export { LocationMessageOptions, sendLocationMessage, } from './sendLocationMessage';
|
|
60
61
|
export { OrderItems, OrderMessageOptions, sendOrderMessage, } from './sendOrderMessage';
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
/*!
|
|
2
|
+
* Copyright 2021 WPPConnect Team
|
|
3
|
+
*
|
|
4
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
5
|
+
* you may not use this file except in compliance with the License.
|
|
6
|
+
* You may obtain a copy of the License at
|
|
7
|
+
*
|
|
8
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
9
|
+
*
|
|
10
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
11
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
12
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
13
|
+
* See the License for the specific language governing permissions and
|
|
14
|
+
* limitations under the License.
|
|
15
|
+
*/
|
|
16
|
+
import { Wid } from '../../whatsapp';
|
|
17
|
+
import { SendMessageOptions, SendMessageReturn } from '..';
|
|
18
|
+
export interface GroupInviteMessage extends SendMessageOptions {
|
|
19
|
+
jpegThumbnail?: string;
|
|
20
|
+
inviteCode: string;
|
|
21
|
+
inviteCodeExpiration?: number;
|
|
22
|
+
groupId: string | Wid;
|
|
23
|
+
groupName?: string;
|
|
24
|
+
caption?: string;
|
|
25
|
+
}
|
|
26
|
+
/**
|
|
27
|
+
* Send a group invite message
|
|
28
|
+
*
|
|
29
|
+
* @example
|
|
30
|
+
* ```javascript
|
|
31
|
+
* WPP.chat.sendGroupInviteMessage(
|
|
32
|
+
* '[number]@c.us',
|
|
33
|
+
* {
|
|
34
|
+
* inviteCode: '123',
|
|
35
|
+
* groupId: '789@g.us'
|
|
36
|
+
* }
|
|
37
|
+
* );
|
|
38
|
+
*
|
|
39
|
+
* // After a invite
|
|
40
|
+
* const result = await WPP.group.addParticipants('789@g.us', '123@c.us');
|
|
41
|
+
* const participant = result['123@c.us'];
|
|
42
|
+
* if (participant.invite_code) {
|
|
43
|
+
* WPP.chat.sendGroupInviteMessage(
|
|
44
|
+
* '123@c.us',
|
|
45
|
+
* {
|
|
46
|
+
* inviteCode: participant.invite_code,
|
|
47
|
+
* inviteCodeExpiration: participant.invite_code_exp,
|
|
48
|
+
* groupId: '789@g.us'
|
|
49
|
+
* }
|
|
50
|
+
* );
|
|
51
|
+
* }
|
|
52
|
+
* ```
|
|
53
|
+
*
|
|
54
|
+
* @category Message
|
|
55
|
+
*/
|
|
56
|
+
export declare function sendGroupInviteMessage(chatId: any, options: GroupInviteMessage): Promise<SendMessageReturn>;
|
package/dist/conn/index.d.ts
CHANGED
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
/*!
|
|
2
|
+
* Copyright 2024 WPPConnect Team
|
|
3
|
+
*
|
|
4
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
5
|
+
* you may not use this file except in compliance with the License.
|
|
6
|
+
* You may obtain a copy of the License at
|
|
7
|
+
*
|
|
8
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
9
|
+
*
|
|
10
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
11
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
12
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
13
|
+
* See the License for the specific language governing permissions and
|
|
14
|
+
* limitations under the License.
|
|
15
|
+
*/
|
|
16
|
+
export {};
|
|
@@ -28,8 +28,9 @@ export interface NewLabelOptions {
|
|
|
28
28
|
* await WPP.labels.addNewLabel(`Name of label`);
|
|
29
29
|
* //or
|
|
30
30
|
* await WPP.labels.addNewLabel(`Name of label`, { labelColor: '#dfaef0' });
|
|
31
|
-
*
|
|
32
|
-
*
|
|
31
|
+
* ```
|
|
32
|
+
* //or with color index
|
|
33
|
+
* await WPP.labels.addNewLabel(`Name of label`, { labelColor: 16 });
|
|
33
34
|
* ```
|
|
34
35
|
*/
|
|
35
|
-
export declare function addNewLabel(labelName: string, options?: NewLabelOptions): Promise<
|
|
36
|
+
export declare function addNewLabel(labelName: string, options?: NewLabelOptions): Promise<import("..").Label>;
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
/*!
|
|
2
|
+
* Copyright 2024 WPPConnect Team
|
|
3
|
+
*
|
|
4
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
5
|
+
* you may not use this file except in compliance with the License.
|
|
6
|
+
* You may obtain a copy of the License at
|
|
7
|
+
*
|
|
8
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
9
|
+
*
|
|
10
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
11
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
12
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
13
|
+
* See the License for the specific language governing permissions and
|
|
14
|
+
* limitations under the License.
|
|
15
|
+
*/
|
|
16
|
+
export interface EditLabelOptions {
|
|
17
|
+
/**
|
|
18
|
+
* If it's decimal, send it as a number. If it's hexadecimal, send it as a string.
|
|
19
|
+
* If labelColor is omitted, the color will be generated automatically
|
|
20
|
+
*/
|
|
21
|
+
labelColor?: string | number;
|
|
22
|
+
name?: string;
|
|
23
|
+
}
|
|
24
|
+
/**
|
|
25
|
+
* Edit a label
|
|
26
|
+
* For get a new color, use await WPP.labels.getLabelColorPalette() to get the list of available colors
|
|
27
|
+
* @example
|
|
28
|
+
* ```javascript
|
|
29
|
+
* await WPP.labels.editLabel(`Name of label`);
|
|
30
|
+
* //or
|
|
31
|
+
* await WPP.labels.editLabel(`Name of label`, { labelColor: '#dfaef0' });
|
|
32
|
+
* ```
|
|
33
|
+
* //or with color index
|
|
34
|
+
* await WPP.labels.editLabel(`Name of label`, { labelColor: 16 });
|
|
35
|
+
* ```
|
|
36
|
+
*/
|
|
37
|
+
export declare function editLabel(id: string, options?: EditLabelOptions): Promise<import("..").Label>;
|
|
@@ -14,6 +14,6 @@
|
|
|
14
14
|
* limitations under the License.
|
|
15
15
|
*/
|
|
16
16
|
/**
|
|
17
|
-
* Returns an array of color palette in
|
|
17
|
+
* Returns an array of color palette in hex code
|
|
18
18
|
*/
|
|
19
|
-
export declare function getLabelColorPalette(): Promise<
|
|
19
|
+
export declare function getLabelColorPalette(): Promise<string[]>;
|
|
@@ -18,6 +18,7 @@ export { addOrRemoveLabels, AddOrRemoveLabelsOptions, } from './addOrRemoveLabel
|
|
|
18
18
|
export { colorIsInLabelPalette } from './colorIsInLabelPalette';
|
|
19
19
|
export { deleteAllLabels } from './deleteAllLabels';
|
|
20
20
|
export { deleteLabel, DeleteLabelReturn } from './deleteLabel';
|
|
21
|
+
export { editLabel } from './editLabel';
|
|
21
22
|
export { getAllLabels } from './getAllLabels';
|
|
22
23
|
export { getLabelById } from './getLabelById';
|
|
23
24
|
export { getLabelColorPalette } from './getLabelColorPalette';
|
package/dist/labels/types.d.ts
CHANGED
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
/*!
|
|
2
|
+
* Copyright 2021 WPPConnect Team
|
|
3
|
+
*
|
|
4
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
5
|
+
* you may not use this file except in compliance with the License.
|
|
6
|
+
* You may obtain a copy of the License at
|
|
7
|
+
*
|
|
8
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
9
|
+
*
|
|
10
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
11
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
12
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
13
|
+
* See the License for the specific language governing permissions and
|
|
14
|
+
* limitations under the License.
|
|
15
|
+
*/
|
|
16
|
+
/**
|
|
17
|
+
* Get your current profile name
|
|
18
|
+
*
|
|
19
|
+
* @example
|
|
20
|
+
* ```javascript
|
|
21
|
+
* const myProfileName = WPP.profile.getMyProfileName();
|
|
22
|
+
* ```
|
|
23
|
+
*
|
|
24
|
+
* @category Profile
|
|
25
|
+
*/
|
|
26
|
+
export declare function getMyProfileName(): string;
|
|
@@ -14,6 +14,7 @@
|
|
|
14
14
|
* limitations under the License.
|
|
15
15
|
*/
|
|
16
16
|
export { editBusinessProfile } from './editBusinessProfile';
|
|
17
|
+
export { getMyProfileName } from './getMyProfileName';
|
|
17
18
|
export { getMyStatus } from './getMyStatus';
|
|
18
19
|
export { isBusiness } from './isBusiness';
|
|
19
20
|
export { removeMyProfilePicture } from './removeMyProfilePicture';
|
package/dist/webpack/index.d.ts
CHANGED
|
@@ -13,6 +13,10 @@
|
|
|
13
13
|
* See the License for the specific language governing permissions and
|
|
14
14
|
* limitations under the License.
|
|
15
15
|
*/
|
|
16
|
+
/**
|
|
17
|
+
* Is setted true when the loader is injected
|
|
18
|
+
*/
|
|
19
|
+
export declare let loaderType: 'meta' | 'unknown' | 'webpack';
|
|
16
20
|
/**
|
|
17
21
|
* Is setted true when the loader is injected
|
|
18
22
|
*/
|
|
@@ -29,6 +33,11 @@ export declare function onInjected(listener: () => void, delay?: number): void;
|
|
|
29
33
|
export declare function onReady(listener: () => void, delay?: number): void;
|
|
30
34
|
export declare function onFullReady(listener: () => void, delay?: number): void;
|
|
31
35
|
export type SearchModuleCondition = (module: any, moduleId: string) => boolean;
|
|
36
|
+
export declare const __debug: () => {
|
|
37
|
+
modulesMap: {
|
|
38
|
+
[key: string]: any;
|
|
39
|
+
};
|
|
40
|
+
};
|
|
32
41
|
export declare let webpackRequire: (<T = any>(moduleId: string) => T) & {
|
|
33
42
|
/**
|
|
34
43
|
* module list
|
|
@@ -31,6 +31,7 @@ export declare class LabelCollection extends BaseCollection<LabelModel> {
|
|
|
31
31
|
deleteLabel(id: string): any;
|
|
32
32
|
updateLabel(e?: any, t?: any): any;
|
|
33
33
|
getNewLabelColor(): any;
|
|
34
|
+
getNextAvailableColor(): any;
|
|
34
35
|
getLabelColorPalette(): any;
|
|
35
36
|
handleRemove(e?: any): any;
|
|
36
37
|
updateChecksum(e?: any): any;
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
/*!
|
|
2
|
+
* Copyright 2023 WPPConnect Team
|
|
3
|
+
*
|
|
4
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
5
|
+
* you may not use this file except in compliance with the License.
|
|
6
|
+
* You may obtain a copy of the License at
|
|
7
|
+
*
|
|
8
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
9
|
+
*
|
|
10
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
11
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
12
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
13
|
+
* See the License for the specific language governing permissions and
|
|
14
|
+
* limitations under the License.
|
|
15
|
+
*/
|
|
16
|
+
/**
|
|
17
|
+
* @whatsapp 885910
|
|
18
|
+
*/
|
|
19
|
+
export declare function colorIndexToHex(index: number): string;
|
|
20
|
+
export declare function getAllLabelColors(): string[];
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
/*!
|
|
2
|
+
* Copyright 2023 WPPConnect Team
|
|
3
|
+
*
|
|
4
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
5
|
+
* you may not use this file except in compliance with the License.
|
|
6
|
+
* You may obtain a copy of the License at
|
|
7
|
+
*
|
|
8
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
9
|
+
*
|
|
10
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
11
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
12
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
13
|
+
* See the License for the specific language governing permissions and
|
|
14
|
+
* limitations under the License.
|
|
15
|
+
*/
|
|
16
|
+
/** @whatsapp 263133
|
|
17
|
+
*/
|
|
18
|
+
export declare function getNextLabelId(): Promise<number>;
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
/*!
|
|
2
|
+
* Copyright 2023 WPPConnect Team
|
|
3
|
+
*
|
|
4
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
5
|
+
* you may not use this file except in compliance with the License.
|
|
6
|
+
* You may obtain a copy of the License at
|
|
7
|
+
*
|
|
8
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
9
|
+
*
|
|
10
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
11
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
12
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
13
|
+
* See the License for the specific language governing permissions and
|
|
14
|
+
* limitations under the License.
|
|
15
|
+
*/
|
|
16
|
+
/**
|
|
17
|
+
* @whatsapp 135963 >= 2.2310.5
|
|
18
|
+
*/
|
|
19
|
+
export declare function getPushname(): string;
|
|
@@ -22,6 +22,7 @@ export * from './canEditMsg';
|
|
|
22
22
|
export * from './canReplyMsg';
|
|
23
23
|
export * from './changeOptInStatusForExternalWebBeta';
|
|
24
24
|
export * from './collections';
|
|
25
|
+
export * from './colorIndexToHex';
|
|
25
26
|
export * from './contactFunctions';
|
|
26
27
|
export * from './createFanoutMsgStanza';
|
|
27
28
|
export * from './createGroup';
|
|
@@ -57,9 +58,11 @@ export * from './getGroupSenderKeyList';
|
|
|
57
58
|
export * from './getGroupSizeLimit';
|
|
58
59
|
export * from './getHistorySyncProgress';
|
|
59
60
|
export * from './getMembershipApprovalRequests';
|
|
61
|
+
export * from './getNextLabelId';
|
|
60
62
|
export * from './getNumChatsPinned';
|
|
61
63
|
export * from './getOrderInfo';
|
|
62
64
|
export * from './getParticipants';
|
|
65
|
+
export * from './getPushname';
|
|
63
66
|
export * from './getQuotedMsgObj';
|
|
64
67
|
export * from './getReactions';
|
|
65
68
|
export * from './getSearchContext';
|
|
@@ -76,6 +79,8 @@ export * from './isRegistered';
|
|
|
76
79
|
export * from './isUnreadTypeMsg';
|
|
77
80
|
export * from './joinGroupViaInvite';
|
|
78
81
|
export * from './keepMessage';
|
|
82
|
+
export * from './labelAddAction';
|
|
83
|
+
export * from './labelAddAction';
|
|
79
84
|
export * from './markSeen';
|
|
80
85
|
export * from './mediaTypeFromProtobuf';
|
|
81
86
|
export * from './membershipApprovalRequestAction';
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
/*!
|
|
2
|
+
* Copyright 2023 WPPConnect Team
|
|
3
|
+
*
|
|
4
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
5
|
+
* you may not use this file except in compliance with the License.
|
|
6
|
+
* You may obtain a copy of the License at
|
|
7
|
+
*
|
|
8
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
9
|
+
*
|
|
10
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
11
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
12
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
13
|
+
* See the License for the specific language governing permissions and
|
|
14
|
+
* limitations under the License.
|
|
15
|
+
*/
|
|
16
|
+
/** @whatsapp 165820
|
|
17
|
+
*/
|
|
18
|
+
export declare function labelAddAction(name: string, colorIndex: number): Promise<any>;
|
|
19
|
+
export declare function labelDeleteAction(id: string, name: string, colorIndex: number): Promise<number>;
|
|
20
|
+
export declare function labelEditAction(id: string, name: string, predefinedId: number, colorIndex: number): Promise<any>;
|
|
@@ -15,8 +15,17 @@
|
|
|
15
15
|
*/
|
|
16
16
|
import { ChatModel } from '../models';
|
|
17
17
|
/**
|
|
18
|
+
* @deprecated
|
|
18
19
|
* @whatsapp 59992
|
|
19
20
|
* @whatsapp 259992 >= 2.2222.8
|
|
20
21
|
* @whatsapp 503153 >= 2.2228.4
|
|
22
|
+
* <= 2.3000.x
|
|
21
23
|
*/
|
|
22
24
|
export declare function setArchive(chat: ChatModel, archive: boolean, id?: string): Promise<void>;
|
|
25
|
+
/**
|
|
26
|
+
* @whatsapp >= 2.3000.1012117641
|
|
27
|
+
*/
|
|
28
|
+
export declare function setArchive(args: {
|
|
29
|
+
id: string;
|
|
30
|
+
archive: boolean;
|
|
31
|
+
}[]): Promise<void>;
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
/*!
|
|
2
|
+
* Copyright 2024 WPPConnect Team
|
|
3
|
+
*
|
|
4
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
5
|
+
* you may not use this file except in compliance with the License.
|
|
6
|
+
* You may obtain a copy of the License at
|
|
7
|
+
*
|
|
8
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
9
|
+
*
|
|
10
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
11
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
12
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
13
|
+
* See the License for the specific language governing permissions and
|
|
14
|
+
* limitations under the License.
|
|
15
|
+
*/
|
|
16
|
+
/**
|
|
17
|
+
* @whatsapp >= 2.3000.x
|
|
18
|
+
*/
|
|
19
|
+
export declare namespace IsOfficialClient {
|
|
20
|
+
function isLegitErrorStack(): boolean;
|
|
21
|
+
let isOfficialClient: boolean;
|
|
22
|
+
}
|
|
@@ -21,7 +21,7 @@ export * from './Conn';
|
|
|
21
21
|
export * from './Constants';
|
|
22
22
|
export * from './EventEmitter';
|
|
23
23
|
export * from './ImageUtils';
|
|
24
|
-
export * from './
|
|
24
|
+
export * from './IsOfficialClient';
|
|
25
25
|
export * from './MediaBlobCache';
|
|
26
26
|
export * from './MediaEntry';
|
|
27
27
|
export * from './MediaObject';
|