@open-wa/wa-automate 4.43.3 → 4.43.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.
@@ -491,7 +491,9 @@ export declare class Client {
491
491
  * {@license:restricted@}
492
492
  *
493
493
  * Sends a text message to given chat
494
- * If you need to send a message to new numbers please see [these instructions:](https://docs.openwa.dev/pages/The%20Client/licensed-features.html#sending-messages-to-non-contact-numbers)
494
+ *
495
+ * A license is **NOT** required to send messages with existing chats/contacts. A license is only required for starting conversations with new numbers.
496
+ *
495
497
  * @param to chat id: `xxxxx@c.us`
496
498
  * @param content text message
497
499
  */
@@ -519,6 +521,8 @@ export declare class Client {
519
521
  */
520
522
  sendPaymentRequest(to: ChatId, amount: number, currency: string, message?: string): Promise<boolean | MessageId>;
521
523
  /**
524
+ * {@license:insiders@}
525
+ *
522
526
  * Send generic quick reply buttons. This is an insiders feature for MD accounts.
523
527
  *
524
528
  * @param {ChatId} to chat id
@@ -1256,7 +1260,7 @@ export declare class Client {
1256
1260
  *
1257
1261
  * {@license:insiders@}
1258
1262
  *
1259
- * Use a Baileys payload within your open-wa session
1263
+ * Use a raw payload within your open-wa session
1260
1264
  *
1261
1265
  * @param chatId
1262
1266
  * @param payload {any}
@@ -1294,7 +1294,9 @@ class Client {
1294
1294
  * {@license:restricted@}
1295
1295
  *
1296
1296
  * Sends a text message to given chat
1297
- * If you need to send a message to new numbers please see [these instructions:](https://docs.openwa.dev/pages/The%20Client/licensed-features.html#sending-messages-to-non-contact-numbers)
1297
+ *
1298
+ * A license is **NOT** required to send messages with existing chats/contacts. A license is only required for starting conversations with new numbers.
1299
+ *
1298
1300
  * @param to chat id: `xxxxx@c.us`
1299
1301
  * @param content text message
1300
1302
  */
@@ -1363,6 +1365,8 @@ class Client {
1363
1365
  });
1364
1366
  }
1365
1367
  /**
1368
+ * {@license:insiders@}
1369
+ *
1366
1370
  * Send generic quick reply buttons. This is an insiders feature for MD accounts.
1367
1371
  *
1368
1372
  * @param {ChatId} to chat id
@@ -1639,7 +1643,7 @@ class Client {
1639
1643
  catch (error) {
1640
1644
  logging_1.log.error(error);
1641
1645
  }
1642
- if (linkData)
1646
+ if (linkData && (thumbnail || thumb))
1643
1647
  return yield this.sendMessageWithThumb(thumbnail || thumb, url, linkData.title, linkData.description, text, to);
1644
1648
  else
1645
1649
  return yield this.pup(({ to, url, text, thumbnail }) => WAPI.sendLinkWithAutoPreview(to, url, text, thumbnail), { to, url, text, thumbnail });
@@ -2646,7 +2650,7 @@ class Client {
2646
2650
  *
2647
2651
  * {@license:insiders@}
2648
2652
  *
2649
- * Use a Baileys payload within your open-wa session
2653
+ * Use a raw payload within your open-wa session
2650
2654
  *
2651
2655
  * @param chatId
2652
2656
  * @param payload {any}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@open-wa/wa-automate",
3
- "version": "4.43.3",
3
+ "version": "4.43.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",
package/.eslintrc.json DELETED
@@ -1,24 +0,0 @@
1
- {
2
- "env": {
3
- "es2021": true,
4
- "node": true
5
- },
6
- "extends": [
7
- "eslint:recommended",
8
- "plugin:@typescript-eslint/recommended"
9
- ],
10
- "parser": "@typescript-eslint/parser",
11
- "parserOptions": {
12
- "ecmaVersion": 12,
13
- "sourceType": "module"
14
- },
15
- "plugins": [
16
- "@typescript-eslint"
17
- ],
18
- "rules": {
19
- "@typescript-eslint/no-explicit-any" : "off",
20
- "@typescript-eslint/no-empty-function" : "off",
21
- "no-async-promise-executor" : "off",
22
- "@typescript-eslint/ban-ts-comment" : "off"
23
- }
24
- }