@open-wa/wa-automate-types-only 4.37.3 → 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
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`
|
@@ -1111,8 +1132,7 @@ export declare class Client {
|
|
1111
1132
|
*/
|
1112
1133
|
react(messageId: MessageId, emoji: string): Promise<boolean>;
|
1113
1134
|
/**
|
1114
|
-
*
|
1115
|
-
* [REQUIRES AN INSIDERS LICENSE-KEY](https://gum.co/open-wa?tier=Insiders%20Program)
|
1135
|
+
* @deprecated
|
1116
1136
|
*
|
1117
1137
|
* Retrieves a message object which results in a valid sticker instead of a blank one. This also works with animated stickers.
|
1118
1138
|
*
|
@@ -1121,7 +1141,7 @@ export declare class Client {
|
|
1121
1141
|
* @param messageId The message ID `message.id`
|
1122
1142
|
* @returns message object OR `false`
|
1123
1143
|
*/
|
1124
|
-
getStickerDecryptable(messageId: MessageId): Promise<Message |
|
1144
|
+
getStickerDecryptable(messageId: MessageId): Promise<Message | false>;
|
1125
1145
|
/**
|
1126
1146
|
*
|
1127
1147
|
* [REQUIRES AN INSIDERS LICENSE-KEY](https://gum.co/open-wa?tier=Insiders%20Program)
|
package/package.json
CHANGED