@wppconnect/wa-js 2.24.0 → 2.24.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 CHANGED
@@ -1,5 +1,5 @@
1
- # 2.24.0 (2023-05-03)
1
+ ## 2.24.1 (2023-05-19)
2
2
 
3
- ### Features
3
+ ### Bug Fixes
4
4
 
5
- - Added WPP.conn.isOnline function (close [#1085](https://github.com/wppconnect-team/wa-js/issues/1085)) ([b2d48c1](https://github.com/wppconnect-team/wa-js/commit/b2d48c116d0d03614dc66fbcf857c72e5fb7fc4f))
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))
@@ -19,4 +19,4 @@ import { ChatModel, MsgKey, Wid } from '../../whatsapp';
19
19
  *
20
20
  * @category Message
21
21
  */
22
- export declare function generateMessageID(chat: string | ChatModel | Wid): MsgKey;
22
+ export declare function generateMessageID(chat: string | ChatModel | Wid): Promise<MsgKey>;
@@ -16,5 +16,7 @@
16
16
  /** @whatsapp 65212
17
17
  * @whatsapp 15860 >= 2.2204.13
18
18
  * @whatsapp 465212 >= 2.2222.8
19
+ * @returns Promise for @whatsapp >= 2.2321.4
20
+ * @returns string for @whatsapp < 2.2321.4
19
21
  */
20
- export declare function randomMessageId(): string;
22
+ export declare function randomMessageId(): string | Promise<string>;