correction of messages sent by the api and typebot not appearing in chatwoot

This commit is contained in:
Davidson Gomes
2023-10-02 16:10:04 -03:00
parent e1ac29683d
commit a9c087c45f
4 changed files with 55 additions and 24 deletions

View File

@@ -1279,7 +1279,7 @@ export class ChatwootService {
return null;
}
if (event === 'messages.upsert') {
if (event === 'messages.upsert' || event === 'send.messages') {
this.logger.verbose('event messages.upsert');
if (body.key.remoteJid === 'status@broadcast') {