@wppconnect/wa-js 2.13.1 → 2.13.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,5 +1,5 @@
1
- ## 2.13.1 (2022-10-10)
1
+ ## 2.13.2 (2022-10-13)
2
2
 
3
3
  ### Bug Fixes
4
4
 
5
- - Fixed unixTime function for WhatsApp < 2.2238.5 ([bf42f51](https://github.com/wppconnect-team/wa-js/commit/bf42f51db46bc24041b3426080d61bc4790335ed))
5
+ - Fixed WPP.chat.sendCreatePollMessage function ([b688d95](https://github.com/wppconnect-team/wa-js/commit/b688d957a13d0a56311649d55ffd042fc6f3bea3))
@@ -14,7 +14,9 @@
14
14
  * limitations under the License.
15
15
  */
16
16
  import { SendMessageOptions, SendMessageReturn } from '..';
17
- export declare type PoolMessageOptions = SendMessageOptions;
17
+ export interface PoolMessageOptions extends SendMessageOptions {
18
+ selectableCount?: number;
19
+ }
18
20
  /**
19
21
  * Send a create poll message
20
22
  *
@@ -29,6 +31,18 @@ export declare type PoolMessageOptions = SendMessageOptions;
29
31
  * ['Option 1', 'Option 2', 'Option 3']
30
32
  * );
31
33
  * ```
34
+ * // Selectable Count
35
+ * ```javascript
36
+ * // Single pool
37
+ * WPP.chat.sendCreatePollMessage(
38
+ * '[number]@g.us',
39
+ * 'A poll name',
40
+ * ['Option 1', 'Option 2', 'Option 3'],
41
+ * {
42
+ * selectableCount: 1,
43
+ * }
44
+ * );
45
+ * ```
32
46
  *
33
47
  * @category Message
34
48
  */