@open-wa/wa-automate-types-only 4.37.5 → 4.38.0

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.
@@ -178,6 +178,13 @@ export declare class Client {
178
178
  * @fires [[Message]]
179
179
  */
180
180
  onButton(fn: (message: Message) => void): Promise<Listener | boolean>;
181
+ /**
182
+ * Listens to broadcast messages
183
+ * @event
184
+ * @param fn callback
185
+ * @fires [[Message]]
186
+ */
187
+ onBroadcast(fn: (message: Message) => void): Promise<Listener | boolean>;
181
188
  /**
182
189
  * Listens to battery changes
183
190
  *
@@ -519,6 +526,20 @@ export declare class Client {
519
526
  sendBanner(to: ChatId, base64: Base64): Promise<boolean | MessageId>;
520
527
  /**
521
528
  * {@license:insiders@}
529
+ *
530
+ * :::documentation-page{title="Welcome"}
531
+ *
532
+ * Please install :inline-code[unified]!
533
+ *
534
+ * ::copyright-notice{year="2020"}
535
+ *
536
+ * :::
537
+ * ::license-required[insiders]
538
+ *
539
+ * ::span{year="2020"}
540
+ *
541
+ * :span{year="2020"}
542
+ *
522
543
  * <span theme="badge contrast license">Insiders</span>
523
544
  * [REQUIRES AN INSIDERS LICENSE-KEY](https://gum.co/open-wa?tier=Insiders%20Program)
524
545
  *
@@ -564,7 +585,7 @@ export declare class Client {
564
585
  * @param chatId The chat you want to send this message to.
565
586
  *
566
587
  */
567
- sendMessageWithThumb(thumb: string, url: string, title: string, description: string, text: Content, chatId: ChatId): Promise<MessageId | string | boolean>;
588
+ sendMessageWithThumb(thumb: string, url: string, title: string, description: string, text: Content, chatId: ChatId): Promise<MessageId | boolean>;
568
589
  /**
569
590
  * Sends a location message to given chat
570
591
  * @param to chat id: `xxxxx@c.us`
@@ -62,6 +62,10 @@ export declare enum SimpleListener {
62
62
  * Represents [[onButton]]
63
63
  */
64
64
  Button = "onButton",
65
+ /**
66
+ * Represents [[onBroadcast]]
67
+ */
68
+ Broadcast = "onBroadcast",
65
69
  /**
66
70
  * Represents [[onLabel]]
67
71
  */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@open-wa/wa-automate-types-only",
3
- "version": "4.37.5",
3
+ "version": "4.38.0",
4
4
  "description": "Types generated from the @open-wa/wa-automate package",
5
5
  "scripts": {
6
6
  "build": "tsc",