@wppconnect/wa-js 2.13.1 → 2.13.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.13.
|
|
1
|
+
## 2.13.3 (2022-10-17)
|
|
2
2
|
|
|
3
3
|
### Bug Fixes
|
|
4
4
|
|
|
5
|
-
- Fixed
|
|
5
|
+
- Fixed generated message ID for groups ([aceeb89](https://github.com/wppconnect-team/wa-js/commit/aceeb896886565708095f307f2ed621148b58571))
|
|
@@ -14,7 +14,9 @@
|
|
|
14
14
|
* limitations under the License.
|
|
15
15
|
*/
|
|
16
16
|
import { SendMessageOptions, SendMessageReturn } from '..';
|
|
17
|
-
export
|
|
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
|
*/
|