@open-wa/wa-automate 4.50.0 → 4.50.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 +1 -1
- package/dist/api/Client.js +3 -4
- package/package.json +1 -1
package/dist/api/Client.d.ts
CHANGED
@@ -713,7 +713,7 @@ export declare class Client {
|
|
713
713
|
* @param hideTags boolean default: false [INSIDERS] set this to try silent tag someone in the caption
|
714
714
|
* @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
|
715
715
|
*/
|
716
|
-
sendFile(to: ChatId, file: AdvancedFile, filename: string, caption: Content, quotedMsgId?: MessageId, waitForId?: boolean, ptt?: boolean, withoutPreview?: boolean, hideTags?: boolean, viewOnce?: boolean): Promise<MessageId | boolean>;
|
716
|
+
sendFile(to: ChatId, file: AdvancedFile, filename: string, caption: Content, quotedMsgId?: MessageId, waitForId?: boolean, ptt?: boolean, withoutPreview?: boolean, hideTags?: boolean, viewOnce?: boolean, requestConfig?: any): Promise<MessageId | boolean>;
|
717
717
|
/**
|
718
718
|
* {@license:insiders@}
|
719
719
|
*
|
package/dist/api/Client.js
CHANGED
@@ -1781,9 +1781,9 @@ class Client {
|
|
1781
1781
|
* @param hideTags boolean default: false [INSIDERS] set this to try silent tag someone in the caption
|
1782
1782
|
* @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
|
1783
1783
|
*/
|
1784
|
-
sendFile(to, file, filename, caption, quotedMsgId, waitForId, ptt, withoutPreview, hideTags, viewOnce) {
|
1784
|
+
sendFile(to, file, filename, caption, quotedMsgId, waitForId, ptt, withoutPreview, hideTags, viewOnce, requestConfig) {
|
1785
1785
|
return __awaiter(this, void 0, void 0, function* () {
|
1786
|
-
return this.sendImage(to, file, filename, caption, quotedMsgId, waitForId, ptt, withoutPreview, hideTags, viewOnce);
|
1786
|
+
return this.sendImage(to, file, filename, caption, quotedMsgId, waitForId, ptt, withoutPreview, hideTags, viewOnce, requestConfig);
|
1787
1787
|
});
|
1788
1788
|
}
|
1789
1789
|
/**
|
@@ -1909,8 +1909,7 @@ class Client {
|
|
1909
1909
|
*/
|
1910
1910
|
sendFileFromUrl(to, url, filename, caption, quotedMsgId, requestConfig = {}, waitForId, ptt, withoutPreview, hideTags, viewOnce) {
|
1911
1911
|
return __awaiter(this, void 0, void 0, function* () {
|
1912
|
-
|
1913
|
-
return yield this.sendFile(to, base64, filename, caption, quotedMsgId, waitForId, ptt, withoutPreview, hideTags, viewOnce);
|
1912
|
+
return yield this.sendFile(to, url, filename, caption, quotedMsgId, waitForId, ptt, withoutPreview, hideTags, viewOnce, requestConfig);
|
1914
1913
|
});
|
1915
1914
|
}
|
1916
1915
|
/**
|
package/package.json
CHANGED