mirror of
https://github.com/EvolutionAPI/evolution-api.git
synced 2025-07-24 17:38:40 -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;
|
return messageSent;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (type === 'image' && parsedMedia && parsedMedia?.ext === '.gif') {
|
||||||
|
type = 'document';
|
||||||
|
}
|
||||||
|
|
||||||
this.logger.verbose('send media to instance: ' + waInstance.instanceName);
|
this.logger.verbose('send media to instance: ' + waInstance.instanceName);
|
||||||
const data: SendMediaDto = {
|
const data: SendMediaDto = {
|
||||||
number: number,
|
number: number,
|
||||||
|
Loading…
Reference in New Issue
Block a user