mirror of
https://github.com/EvolutionAPI/evolution-api.git
synced 2025-07-26 10:28:38 -06:00
Merge 96d3ec2017
into 39606240da
This commit is contained in:
commit
97096aa736
@ -2504,7 +2504,9 @@ export class BaileysStartupService extends ChannelStartupService {
|
|||||||
imageBuffer = Buffer.from(base64Data, 'base64');
|
imageBuffer = Buffer.from(base64Data, 'base64');
|
||||||
} else {
|
} else {
|
||||||
const timestamp = new Date().getTime();
|
const timestamp = new Date().getTime();
|
||||||
const url = `${image}?timestamp=${timestamp}`;
|
const parsedURL = new URL(image);
|
||||||
|
parsedURL.searchParams.set('timestamp', timestamp.toString());
|
||||||
|
const url = parsedURL.toString();
|
||||||
|
|
||||||
let config: any = { responseType: 'arraybuffer' };
|
let config: any = { responseType: 'arraybuffer' };
|
||||||
|
|
||||||
@ -2725,7 +2727,9 @@ export class BaileysStartupService extends ChannelStartupService {
|
|||||||
|
|
||||||
if (isURL(audio)) {
|
if (isURL(audio)) {
|
||||||
const timestamp = new Date().getTime();
|
const timestamp = new Date().getTime();
|
||||||
const url = `${audio}?timestamp=${timestamp}`;
|
const parsedURL = new URL(audio);
|
||||||
|
parsedURL.searchParams.set('timestamp', timestamp.toString());
|
||||||
|
const url = parsedURL.toString();
|
||||||
|
|
||||||
const config: any = { responseType: 'stream' };
|
const config: any = { responseType: 'stream' };
|
||||||
|
|
||||||
@ -3591,7 +3595,9 @@ export class BaileysStartupService extends ChannelStartupService {
|
|||||||
let pic: WAMediaUpload;
|
let pic: WAMediaUpload;
|
||||||
if (isURL(picture)) {
|
if (isURL(picture)) {
|
||||||
const timestamp = new Date().getTime();
|
const timestamp = new Date().getTime();
|
||||||
const url = `${picture}?timestamp=${timestamp}`;
|
const parsedURL = new URL(picture);
|
||||||
|
parsedURL.searchParams.set('timestamp', timestamp.toString());
|
||||||
|
const url = parsedURL.toString();
|
||||||
|
|
||||||
let config: any = { responseType: 'arraybuffer' };
|
let config: any = { responseType: 'arraybuffer' };
|
||||||
|
|
||||||
@ -3873,7 +3879,9 @@ export class BaileysStartupService extends ChannelStartupService {
|
|||||||
let pic: WAMediaUpload;
|
let pic: WAMediaUpload;
|
||||||
if (isURL(picture.image)) {
|
if (isURL(picture.image)) {
|
||||||
const timestamp = new Date().getTime();
|
const timestamp = new Date().getTime();
|
||||||
const url = `${picture.image}?timestamp=${timestamp}`;
|
const parsedURL = new URL(picture.image);
|
||||||
|
parsedURL.searchParams.set('timestamp', timestamp.toString());
|
||||||
|
const url = parsedURL.toString();
|
||||||
|
|
||||||
let config: any = { responseType: 'arraybuffer' };
|
let config: any = { responseType: 'arraybuffer' };
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user