@open-wa/wa-automate-types-only 4.31.1 → 4.31.5
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 +8 -0
- package/package.json +1 -1
package/dist/api/Client.d.ts
CHANGED
@@ -319,6 +319,14 @@ export declare class Client {
|
|
319
319
|
* @emits `<LiveLocationChangedEvent>` LiveLocationChangedEvent
|
320
320
|
*/
|
321
321
|
onLiveLocation(chatId: ChatId, fn: (liveLocationChangedEvent: LiveLocationChangedEvent) => void): Promise<boolean>;
|
322
|
+
/**
|
323
|
+
* Use this simple command to test firing callback events.
|
324
|
+
*
|
325
|
+
* @param callbackToTest
|
326
|
+
* @param testData
|
327
|
+
* @returns `false` if the callback was not registered/does not exist
|
328
|
+
*/
|
329
|
+
testCallback(callbackToTest: SimpleListener, testData: any): Promise<boolean>;
|
322
330
|
/**
|
323
331
|
* Set presence to available or unavailable.
|
324
332
|
* @param available if true it will set your presence to 'online', false will set to unavailable (i.e no 'online' on recipients' phone);
|