Skip to content

Commit

Permalink
Merge pull request #629 from cark7/develop
Browse files Browse the repository at this point in the history
fix: added validation when sending gif image
  • Loading branch information
DavidsonGomes authored Jun 4, 2024
2 parents 52230ed + 6371773 commit 5be01e1
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/api/integrations/chatwoot/services/chatwoot.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit 5be01e1

Please sign in to comment.