fix: Fixed send webhook for event CALL

This commit is contained in:
Davidson Gomes
2023-07-25 10:23:18 -03:00
parent a12231a0aa
commit 62e2a8a6e3
8 changed files with 13 additions and 0 deletions

View File

@@ -1388,11 +1388,15 @@ export class WAStartupService {
text: settings.msg_call,
});
this.logger.verbose('Sending data to event messages.upsert');
this.client.ev.emit('messages.upsert', {
messages: [msg],
type: 'notify',
});
}
this.logger.verbose('Sending data to webhook in event CALL');
this.sendDataWebhook(Events.CALL, call);
}
if (events['connection.update']) {

View File

@@ -22,6 +22,7 @@ export enum Events {
GROUPS_UPSERT = 'groups.upsert',
GROUPS_UPDATE = 'groups.update',
GROUP_PARTICIPANTS_UPDATE = 'group-participants.update',
CALL = 'call',
}
export declare namespace wa {