mirror of
https://github.com/EvolutionAPI/evolution-api.git
synced 2025-07-14 09:51:24 -06:00
Messages sent by the api now arrive in chatwoot
This commit is contained in:
parent
3a14fc373a
commit
deb07d2b7f
@ -19,6 +19,7 @@
|
|||||||
* Update Dockerfile
|
* Update Dockerfile
|
||||||
* If you pass empty events in create instance and set webhook it is understood as all
|
* If you pass empty events in create instance and set webhook it is understood as all
|
||||||
* Fixed issue that did not output base64 averages
|
* Fixed issue that did not output base64 averages
|
||||||
|
* Messages sent by the api now arrive in chatwoot
|
||||||
|
|
||||||
### Integrations
|
### Integrations
|
||||||
|
|
||||||
|
@ -678,6 +678,7 @@ export class WAStartupService {
|
|||||||
instance: this.instance.name,
|
instance: this.instance.name,
|
||||||
data,
|
data,
|
||||||
destination: this.localWebhook.url,
|
destination: this.localWebhook.url,
|
||||||
|
ISODatetime: new Date().toISOString(),
|
||||||
sender: this.wuid,
|
sender: this.wuid,
|
||||||
server_url: serverUrl,
|
server_url: serverUrl,
|
||||||
apikey: (expose && instanceApikey) || null,
|
apikey: (expose && instanceApikey) || null,
|
||||||
@ -1991,13 +1992,9 @@ export class WAStartupService {
|
|||||||
this.logger.verbose('Sending data to webhook in event SEND_MESSAGE');
|
this.logger.verbose('Sending data to webhook in event SEND_MESSAGE');
|
||||||
await this.sendDataWebhook(Events.SEND_MESSAGE, messageRaw);
|
await this.sendDataWebhook(Events.SEND_MESSAGE, messageRaw);
|
||||||
|
|
||||||
// if (this.localChatwoot.enabled) {
|
if (this.localChatwoot.enabled) {
|
||||||
// this.chatwootService.eventWhatsapp(
|
this.chatwootService.eventWhatsapp(Events.SEND_MESSAGE, { instanceName: this.instance.name }, messageRaw);
|
||||||
// Events.SEND_MESSAGE,
|
}
|
||||||
// { instanceName: this.instance.name },
|
|
||||||
// messageRaw,
|
|
||||||
// );
|
|
||||||
// }
|
|
||||||
|
|
||||||
this.logger.verbose('Inserting message in database');
|
this.logger.verbose('Inserting message in database');
|
||||||
await this.repository.message.insert(
|
await this.repository.message.insert(
|
||||||
|
Loading…
Reference in New Issue
Block a user