mirror of
https://github.com/EvolutionAPI/evolution-api.git
synced 2025-07-23 04:22:02 -06:00
fix: added validation when sending gif image
This commit is contained in:
parent
52230edc5c
commit
6371773416
@ -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,
|
||||
|
Loading…
Reference in New Issue
Block a user