Merge pull request #629 from cark7/develop

fix: added validation when sending gif image
This commit is contained in:
Davidson Gomes 2024-06-04 16:59:36 -03:00 committed by GitHub
commit 5be01e1c18
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

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,