mirror of
https://github.com/EvolutionAPI/evolution-api.git
synced 2025-07-24 17:38:40 -06:00
Merge pull request #629 from cark7/develop
fix: added validation when sending gif image
This commit is contained in:
commit
5be01e1c18
@ -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