mirror of
https://github.com/EvolutionAPI/evolution-api.git
synced 2025-07-14 01:41:24 -06:00
chatwoot now receives messages sent via api and typebot
This commit is contained in:
parent
f5eeb16bb1
commit
33acfe1464
@ -10,6 +10,8 @@
|
|||||||
* Improvement in restart instance to completely redo the connection
|
* Improvement in restart instance to completely redo the connection
|
||||||
* Update node version: v20
|
* Update node version: v20
|
||||||
* Correction of messages sent by the api and typebot not appearing in chatwoot
|
* Correction of messages sent by the api and typebot not appearing in chatwoot
|
||||||
|
* Adjustment to start typebot, added startSession parameter
|
||||||
|
* Chatwoot now receives messages sent via api and typebot
|
||||||
|
|
||||||
# 1.5.2 (2023-09-28 17:56)
|
# 1.5.2 (2023-09-28 17:56)
|
||||||
|
|
||||||
|
@ -1132,7 +1132,7 @@ export class ChatwootService {
|
|||||||
thumbnailUrl: string;
|
thumbnailUrl: string;
|
||||||
sourceUrl: string;
|
sourceUrl: string;
|
||||||
}
|
}
|
||||||
const adsMessage: AdsMessage | undefined = msg.extendedTextMessage?.contextInfo.externalAdReply;
|
const adsMessage: AdsMessage | undefined = msg.extendedTextMessage?.contextInfo?.externalAdReply;
|
||||||
|
|
||||||
this.logger.verbose('Get ads message if it exist');
|
this.logger.verbose('Get ads message if it exist');
|
||||||
adsMessage && this.logger.verbose('Ads message: ' + adsMessage);
|
adsMessage && this.logger.verbose('Ads message: ' + adsMessage);
|
||||||
@ -1279,7 +1279,7 @@ export class ChatwootService {
|
|||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (event === 'messages.upsert' || event === 'send.messages') {
|
if (event === 'messages.upsert' || event === 'send.message') {
|
||||||
this.logger.verbose('event messages.upsert');
|
this.logger.verbose('event messages.upsert');
|
||||||
|
|
||||||
if (body.key.remoteJid === 'status@broadcast') {
|
if (body.key.remoteJid === 'status@broadcast') {
|
||||||
|
@ -233,7 +233,7 @@ export class TypebotService {
|
|||||||
prefilledVariables: {
|
prefilledVariables: {
|
||||||
...data.prefilledVariables,
|
...data.prefilledVariables,
|
||||||
remoteJid: data.remoteJid,
|
remoteJid: data.remoteJid,
|
||||||
pushName: data.pushName || 'Default Name',
|
pushName: data.pushName || '',
|
||||||
instanceName: instance.instanceName,
|
instanceName: instance.instanceName,
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
@ -251,7 +251,7 @@ export class TypebotService {
|
|||||||
prefilledVariables: {
|
prefilledVariables: {
|
||||||
...data.prefilledVariables,
|
...data.prefilledVariables,
|
||||||
remoteJid: data.remoteJid,
|
remoteJid: data.remoteJid,
|
||||||
pushName: data.pushName || 'Default Name',
|
pushName: data.pushName || '',
|
||||||
instanceName: instance.instanceName,
|
instanceName: instance.instanceName,
|
||||||
},
|
},
|
||||||
});
|
});
|
||||||
|
Loading…
Reference in New Issue
Block a user