@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.
- package/dist/api/Client.d.ts +22 -1
- package/dist/api/model/events.d.ts +4 -0
- package/package.json +1 -1
package/dist/api/Client.d.ts
CHANGED
@@ -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 |
|
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`
|