@wppconnect/wa-js 3.2.0 → 3.2.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,9 +1,9 @@
1
- # 3.2.0 (2024-04-25)
1
+ ## 3.2.1 (2024-04-27)
2
2
 
3
3
 
4
- ### Features
4
+ ### Bug Fixes
5
5
 
6
- * Added WPP.newsletter.getSubscribers function ([#1861](https://github.com/wppconnect-team/wa-js/issues/1861)) (close [#1746](https://github.com/wppconnect-team/wa-js/issues/1746)) ([31bdbb5](https://github.com/wppconnect-team/wa-js/commit/31bdbb5ea4aa94183b03ab0f636700d0f677aa08))
6
+ * Fixed send some messages ([#1876](https://github.com/wppconnect-team/wa-js/issues/1876)) ([f063fa3](https://github.com/wppconnect-team/wa-js/commit/f063fa39fb0062c0542ee91f08c59755c91e3b7d))
7
7
 
8
8
 
9
9
 
@@ -36,8 +36,14 @@ export interface MessageButtonsOptions {
36
36
  /**
37
37
  * Set to use template buttons instead of reply buttons.
38
38
  * @default: undefined - auto detect
39
+ * @deprecated
39
40
  */
40
41
  useTemplateButtons?: boolean | null;
42
+ /**
43
+ * Set to use interactive message instead of reply buttons.
44
+ * @default: undefined - auto detect
45
+ */
46
+ useInteractiveMesssage?: boolean | null;
41
47
  /**
42
48
  * Footer text for buttons
43
49
  */
@@ -44,6 +44,7 @@ export interface AutoDetectMessageOptions extends FileMessageOptions {
44
44
  export interface AudioMessageOptions extends FileMessageOptions {
45
45
  type: 'audio';
46
46
  isPtt?: boolean;
47
+ isViewOnce?: boolean;
47
48
  /**
48
49
  * Send an audio message as a PTT with waveform
49
50
  *
@@ -87,6 +88,7 @@ export interface VideoMessageOptions extends FileMessageOptions, MessageButtonsO
87
88
  type: 'video';
88
89
  isGif?: boolean;
89
90
  isPtv?: boolean;
91
+ isViewOnce?: boolean;
90
92
  }
91
93
  /**
92
94
  * Send a file message, that can be an audio, document, image, sticker or video