mirror of
https://github.com/FranP-code/Baileys.git
synced 2025-10-13 00:32:22 +00:00
feat: pass original thumbnail url in WAUrlInfo
This commit is contained in:
@@ -43,6 +43,7 @@ export interface WAUrlInfo {
|
|||||||
description?: string
|
description?: string
|
||||||
jpegThumbnail?: Buffer
|
jpegThumbnail?: Buffer
|
||||||
highQualityThumbnail?: proto.Message.IImageMessage
|
highQualityThumbnail?: proto.Message.IImageMessage
|
||||||
|
originalThumbnailUrl?: string
|
||||||
}
|
}
|
||||||
|
|
||||||
// types to generate WA messages
|
// types to generate WA messages
|
||||||
|
|||||||
@@ -45,6 +45,7 @@ export const getUrlInfo = async(
|
|||||||
'matched-text': text,
|
'matched-text': text,
|
||||||
title: info.title,
|
title: info.title,
|
||||||
description: info.description,
|
description: info.description,
|
||||||
|
originalThumbnailUrl: image
|
||||||
}
|
}
|
||||||
|
|
||||||
if(opts.uploadImage) {
|
if(opts.uploadImage) {
|
||||||
|
|||||||
Reference in New Issue
Block a user