@open-wa/wa-automate-types-only 4.22.3 → 4.23.1
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
@@ -535,7 +535,7 @@ export declare class Client {
|
|
535
535
|
* @param hideTags boolean default: false [INSIDERS] set this to try silent tag someone in the caption
|
536
536
|
* @returns Promise <boolean | string> This will either return true or the id of the message. It will return true after 10 seconds even if waitForId is true
|
537
537
|
*/
|
538
|
-
sendImage(to: ChatId, file: DataURL | FilePath, filename: string, caption: Content, quotedMsgId?: MessageId, waitForId?: boolean, ptt?: boolean, withoutPreview?: boolean, hideTags?: boolean): Promise<MessageId | boolean>;
|
538
|
+
sendImage(to: ChatId, file: DataURL | FilePath, filename: string, caption: Content, quotedMsgId?: MessageId, waitForId?: boolean, ptt?: boolean, withoutPreview?: boolean, hideTags?: boolean, viewOnce?: boolean): Promise<MessageId | boolean>;
|
539
539
|
/**
|
540
540
|
* Automatically sends a youtube link with the auto generated link preview. You can also add a custom message.
|
541
541
|
* @param chatId
|
@@ -594,7 +594,7 @@ export declare class Client {
|
|
594
594
|
* @param hideTags boolean default: false [INSIDERS] set this to try silent tag someone in the caption
|
595
595
|
* @returns Promise <boolean | MessageId> This will either return true or the id of the message. It will return true after 10 seconds even if waitForId is true
|
596
596
|
*/
|
597
|
-
sendFile(to: ChatId, file: DataURL | FilePath, filename: string, caption: Content, quotedMsgId?: MessageId, waitForId?: boolean, ptt?: boolean, withoutPreview?: boolean, hideTags?: boolean): Promise<MessageId | boolean>;
|
597
|
+
sendFile(to: ChatId, file: DataURL | FilePath, filename: string, caption: Content, quotedMsgId?: MessageId, waitForId?: boolean, ptt?: boolean, withoutPreview?: boolean, hideTags?: boolean, viewOnce?: boolean): Promise<MessageId | boolean>;
|
598
598
|
/**
|
599
599
|
* [REQUIRES AN INSIDERS LICENSE-KEY](https://gum.co/open-wa?tier=Insiders%20Program)
|
600
600
|
*
|
@@ -647,7 +647,7 @@ export declare class Client {
|
|
647
647
|
* @param ptt boolean default: false set this to true if you want to send the file as a push to talk file.
|
648
648
|
* @param withoutPreview boolean default: false set this to true if you want to send the file without a preview (i.e as a file). This is useful for preventing auto downloads on recipient devices.
|
649
649
|
*/
|
650
|
-
sendFileFromUrl(to: ChatId, url: string, filename: string, caption: Content, quotedMsgId?: MessageId, requestConfig?: AxiosRequestConfig, waitForId?: boolean, ptt?: boolean, withoutPreview?: boolean, hideTags?: boolean): Promise<MessageId | boolean>;
|
650
|
+
sendFileFromUrl(to: ChatId, url: string, filename: string, caption: Content, quotedMsgId?: MessageId, requestConfig?: AxiosRequestConfig, waitForId?: boolean, ptt?: boolean, withoutPreview?: boolean, hideTags?: boolean, viewOnce?: boolean): Promise<MessageId | boolean>;
|
651
651
|
/**
|
652
652
|
* Returns an object with all of your host device details
|
653
653
|
*/
|
@@ -724,6 +724,11 @@ export interface ConfigObject {
|
|
724
724
|
* Headful sessions are ususally only usable on reauthentication.
|
725
725
|
*/
|
726
726
|
ensureHeadfulIntegrity?: boolean;
|
727
|
+
/**
|
728
|
+
* @deprecated
|
729
|
+
* wait for a valid headful session. Not required in recent versions.
|
730
|
+
*/
|
731
|
+
waitForRipeSession?: boolean;
|
727
732
|
/**@internal */
|
728
733
|
[x: string]: any;
|
729
734
|
}
|