@wppconnect/wa-js 2.1.1 → 2.1.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/CHANGELOG.md CHANGED
@@ -1,3 +1,12 @@
1
+ ## 2.1.2 (2022-04-29)
2
+
3
+
4
+ ### Bug Fixes
5
+
6
+ * Added missing footer and title option for WPP.chat.sendListMessage ([19401b3](https://github.com/wppconnect-team/wa-js/commit/19401b3a9e13ef8f1869355a30feea0fb3092da6))
7
+
8
+
9
+
1
10
  ## 2.1.1 (2022-04-27)
2
11
 
3
12
 
@@ -17,6 +17,8 @@ import { SendMessageOptions, SendMessageReturn } from '..';
17
17
  export interface ListMessageOptions extends SendMessageOptions {
18
18
  buttonText: string;
19
19
  description: string;
20
+ title?: string;
21
+ footer?: string;
20
22
  sections: Array<{
21
23
  title: string;
22
24
  rows: Array<{
@@ -32,8 +34,10 @@ export interface ListMessageOptions extends SendMessageOptions {
32
34
  * @example
33
35
  * ```javascript
34
36
  * WPP.chat.sendListMessage('[number]@c.us', {
35
- * buttonText: 'Click Me!',
36
- * description: "Hello it's list message",
37
+ * buttonText: 'Click Me!', //required
38
+ * description: "Hello it's list message", //required
39
+ * title: 'Hello user', //optional
40
+ * footer: 'Click and choose one', //optional
37
41
  * sections: [{
38
42
  * title: 'Section 1',
39
43
  * rows: [{
@@ -194,6 +194,8 @@ interface Props {
194
194
  list?: {
195
195
  buttonText: string;
196
196
  description: string;
197
+ footerText?: string;
198
+ title?: string;
197
199
  sections: Array<{
198
200
  title: string;
199
201
  rows: Array<{