fix: added validation when sending gif image

This commit is contained in:
Carlos Chinchilla 2024-06-04 15:14:02 -03:00
parent 52230edc5c
commit 6371773416

View File

@ -1092,6 +1092,10 @@ export class ChatwootService {
return messageSent;
}
if (type === 'image' && parsedMedia && parsedMedia?.ext === '.gif') {
type = 'document';
}
this.logger.verbose('send media to instance: ' + waInstance.instanceName);
const data: SendMediaDto = {
number: number,