@open-wa/wa-automate 4.55.1 → 4.55.4

Sign up to get free protection for your applications and to get access to all the features.
@@ -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
  /**
@@ -87,7 +87,7 @@ exports.optionList = [{
87
87
  name: 'ef',
88
88
  type: String,
89
89
  //@ts-ignore
90
- default: ["qr", "STARTUP", "MD_DETECT"],
90
+ default: ["qr", "STARTUP", "MD_DETECT", "qrUrl"],
91
91
  isMultiple: true,
92
92
  typeLabel: '{blueBright {underline qr,STARTUP}}',
93
93
  description: "Filters which namespaces trigger the webhook set in -e/--ev."
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@open-wa/wa-automate",
3
- "version": "4.55.1",
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",