@open-wa/wa-automate 4.55.2 → 4.55.4

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.
@@ -766,8 +766,10 @@ export declare class Client {
766
766
  * @param to chat id - a group chat is required
767
767
  * @param name the name of the poll
768
768
  * @param options an array of poll options
769
+ * @param quotedMsgId A message to quote when sending the poll
770
+ * @param allowMultiSelect Whether or not to allow multiple selections. default false
769
771
  */
770
- sendPoll(to: GroupChatId, name: string, options: string[]): Promise<MessageId>;
772
+ sendPoll(to: GroupChatId, name: string, options: string[], quotedMsgId?: MessageId, allowMultiSelect?: boolean): Promise<MessageId>;
771
773
  /**
772
774
  * Sends a video to given chat as a gif, with caption or not, using base64
773
775
  * @param to chat id `xxxxx@c.us`
@@ -1886,12 +1886,14 @@ class Client {
1886
1886
  * @param to chat id - a group chat is required
1887
1887
  * @param name the name of the poll
1888
1888
  * @param options an array of poll options
1889
+ * @param quotedMsgId A message to quote when sending the poll
1890
+ * @param allowMultiSelect Whether or not to allow multiple selections. default false
1889
1891
  */
1890
- sendPoll(to, name, options) {
1892
+ sendPoll(to, name, options, quotedMsgId, allowMultiSelect) {
1891
1893
  return __awaiter(this, void 0, void 0, function* () {
1892
- return yield this.pup(({ to, name, options }) => {
1893
- return WAPI.sendPoll(to, name, options);
1894
- }, { to, name, options });
1894
+ return yield this.pup(({ to, name, options, quotedMsgId, allowMultiSelect }) => {
1895
+ return WAPI.sendPoll(to, name, options, quotedMsgId, allowMultiSelect);
1896
+ }, { to, name, options, quotedMsgId, allowMultiSelect });
1895
1897
  });
1896
1898
  }
1897
1899
  /**
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@open-wa/wa-automate",
3
- "version": "4.55.2",
3
+ "version": "4.55.4",
4
4
  "licenseCheckUrl": "https://funcs.openwa.dev/license-check",
5
5
  "brokenMethodReportUrl": "https://funcs.openwa.dev/report-bm",
6
6
  "patches": "https://cdn.openwa.dev/patches.json",