Skip to content

Commit 6df2757

Browse files
committed
♻️ sendFile, sendFileFromUrl now just fwd to sendImage #2675
1 parent b071bdd commit 6df2757

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/api/Client.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1895,9 +1895,10 @@ public async testCallback(callbackToTest: SimpleListener, testData: any) : Prom
18951895
ptt?:boolean,
18961896
withoutPreview?:boolean,
18971897
hideTags ?: boolean,
1898-
viewOnce ?: boolean
1898+
viewOnce ?: boolean,
1899+
requestConfig ?: any
18991900
) : Promise<MessageId | boolean> {
1900-
return this.sendImage(to, file, filename, caption, quotedMsgId, waitForId, ptt, withoutPreview, hideTags, viewOnce);
1901+
return this.sendImage(to, file, filename, caption, quotedMsgId, waitForId, ptt, withoutPreview, hideTags, viewOnce, requestConfig);
19011902
}
19021903

19031904
/**
@@ -2057,8 +2058,7 @@ public async testCallback(callbackToTest: SimpleListener, testData: any) : Prom
20572058
hideTags ?: boolean,
20582059
viewOnce ?: boolean
20592060
) : Promise<MessageId | boolean> {
2060-
const base64 = await getDUrl(url, requestConfig);
2061-
return await this.sendFile(to,base64,filename,caption,quotedMsgId,waitForId,ptt,withoutPreview, hideTags, viewOnce)
2061+
return await this.sendFile(to,url,filename,caption,quotedMsgId,waitForId,ptt,withoutPreview, hideTags, viewOnce, requestConfig)
20622062
}
20632063

20642064
/**

0 commit comments

Comments
 (0)