fix: send media message in chatwoot

This commit is contained in:
Davidson Gomes
2024-10-04 17:14:12 -03:00
parent 373268c938
commit db065ab942
7 changed files with 21 additions and 17 deletions

View File

@@ -540,7 +540,6 @@ export class ChatwootService {
try {
this.logger.verbose('--- Start createConversation ---');
this.logger.verbose(`Instance: ${JSON.stringify(instance)}`);
this.logger.verbose(`Body: ${JSON.stringify(body)}`);
const client = await this.clientCw(instance);
@@ -1122,7 +1121,7 @@ export class ChatwootService {
data.caption = caption;
}
const messageSent = await waInstance?.mediaMessage(data, true);
const messageSent = await waInstance?.mediaMessage(data, null, true);
return messageSent;
} catch (error) {