@wppconnect/wa-js 2.24.1 → 2.24.3

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 CHANGED
@@ -1,5 +1,5 @@
1
- ## 2.24.1 (2023-05-19)
1
+ ## 2.24.3 (2023-06-13)
2
2
 
3
3
  ### Bug Fixes
4
4
 
5
- - Fixed send message (DuplicateMessageError) (fix [#1126](https://github.com/wppconnect-team/wa-js/issues/1126)) ([d95b140](https://github.com/wppconnect-team/wa-js/commit/d95b140164e688c2603487602283039114a9e9b0))
5
+ - Fixed compatibility with WhatsApp >= 2.2325.3 ([5339618](https://github.com/wppconnect-team/wa-js/commit/53396183f624e5afc0388c2d4374d683dcc43fba))
@@ -14,6 +14,13 @@
14
14
  * limitations under the License.
15
15
  */
16
16
  import { Wid } from '../../whatsapp';
17
+ declare global {
18
+ interface Window {
19
+ Debug: {
20
+ VERSION: string;
21
+ };
22
+ }
23
+ }
17
24
  /**
18
25
  * Add one or more participants to a group
19
26
  *
@@ -0,0 +1,21 @@
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
+ import { Wid } from '../misc';
17
+ /**
18
+ * @whatsapp 469475 >= 2.2307.10
19
+ * @whatsapp 12643 >= 2.2322.15
20
+ */
21
+ export declare function getCurrentLid(wid: Wid): Wid;
@@ -39,6 +39,7 @@ export * from './genMinimalLinkPreview';
39
39
  export * from './getABPropConfigValue';
40
40
  export * from './getAsMms';
41
41
  export * from './getCommunityParticipants';
42
+ export * from './getCurrentLid';
42
43
  export * from './getEphemeralFields';
43
44
  export * from './getFanOutList';
44
45
  export * from './getGroupSenderKeyList';
@@ -17,7 +17,10 @@ import { Wid } from '..';
17
17
  /**
18
18
  * @whatsapp 437722 >= 2.2222.8
19
19
  */
20
- export declare function sendAddParticipants(group: Wid, participants: Wid[]): Promise<{
20
+ export declare function sendAddParticipants(group: Wid, participants: (Wid | {
21
+ phoneNumber: Wid;
22
+ lid?: Wid;
23
+ })[]): Promise<{
21
24
  participants?: ({
22
25
  [key: `${number}@c.us`]: {
23
26
  code: string;
@@ -31,6 +31,7 @@ interface Props {
31
31
  size?: any;
32
32
  support?: any;
33
33
  uniqueShortNameMap?: any;
34
+ isLidAddressingMode: boolean;
34
35
  }
35
36
  interface Session {
36
37
  stale?: any;