mirror of
https://github.com/FranP-code/Baileys.git
synced 2025-10-13 00:32:22 +00:00
chore: pass axios options to downloading remote media
This commit is contained in:
@@ -66,7 +66,11 @@ export const getUrlInfo = async(
|
||||
if(opts.uploadImage) {
|
||||
const { imageMessage } = await prepareWAMessageMedia(
|
||||
{ image: { url: image } },
|
||||
{ upload: opts.uploadImage, mediaTypeOverride: 'thumbnail-link' }
|
||||
{
|
||||
upload: opts.uploadImage,
|
||||
mediaTypeOverride: 'thumbnail-link',
|
||||
options: opts.fetchOpts
|
||||
}
|
||||
)
|
||||
urlInfo.jpegThumbnail = imageMessage?.jpegThumbnail
|
||||
? Buffer.from(imageMessage.jpegThumbnail)
|
||||
|
||||
Reference in New Issue
Block a user