File tree Expand file tree Collapse file tree 2 files changed +5
-7
lines changed Expand file tree Collapse file tree 2 files changed +5
-7
lines changed Original file line number Diff line number Diff line change 19
19
* Update Dockerfile
20
20
* If you pass empty events in create instance and set webhook it is understood as all
21
21
* Fixed issue that did not output base64 averages
22
+ * Messages sent by the api now arrive in chatwoot
22
23
23
24
### Integrations
24
25
Original file line number Diff line number Diff line change @@ -678,6 +678,7 @@ export class WAStartupService {
678
678
instance : this . instance . name ,
679
679
data,
680
680
destination : this . localWebhook . url ,
681
+ ISODatetime : new Date ( ) . toISOString ( ) ,
681
682
sender : this . wuid ,
682
683
server_url : serverUrl ,
683
684
apikey : ( expose && instanceApikey ) || null ,
@@ -1991,13 +1992,9 @@ export class WAStartupService {
1991
1992
this . logger . verbose ( 'Sending data to webhook in event SEND_MESSAGE' ) ;
1992
1993
await this . sendDataWebhook ( Events . SEND_MESSAGE , messageRaw ) ;
1993
1994
1994
- // if (this.localChatwoot.enabled) {
1995
- // this.chatwootService.eventWhatsapp(
1996
- // Events.SEND_MESSAGE,
1997
- // { instanceName: this.instance.name },
1998
- // messageRaw,
1999
- // );
2000
- // }
1995
+ if ( this . localChatwoot . enabled ) {
1996
+ this . chatwootService . eventWhatsapp ( Events . SEND_MESSAGE , { instanceName : this . instance . name } , messageRaw ) ;
1997
+ }
2001
1998
2002
1999
this . logger . verbose ( 'Inserting message in database' ) ;
2003
2000
await this . repository . message . insert (
You can’t perform that action at this time.
0 commit comments