mirror of
https://github.com/EvolutionAPI/evolution-api.git
synced 2025-12-19 03:42:23 -06:00
fix: Fixed problem of getting message when deleting message in chatwoot
This commit is contained in:
@@ -930,6 +930,7 @@ export class ChatwootService {
|
||||
}
|
||||
|
||||
public async receiveWebhook(instance: InstanceDto, body: any) {
|
||||
console.log(body);
|
||||
try {
|
||||
this.logger.verbose('receive webhook to chatwoot instance: ' + instance.instanceName);
|
||||
const client = await this.clientCw(instance);
|
||||
@@ -940,7 +941,7 @@ export class ChatwootService {
|
||||
}
|
||||
|
||||
this.logger.verbose('check if is bot');
|
||||
if (!body?.conversation || body.private) return { message: 'bot' };
|
||||
if (!body?.conversation || body.private || body.event === 'message_updated') return { message: 'bot' };
|
||||
|
||||
this.logger.verbose('check if is group');
|
||||
const chatId =
|
||||
|
||||
Reference in New Issue
Block a user