Skip to content

Commit 84451ba

Browse files
committed
fix: receive messages on chatwoot
1 parent bc751bb commit 84451ba

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/api/integrations/chatbot/chatwoot/services/chatwoot.service.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2042,7 +2042,8 @@ export class ChatwootService {
20422042
return;
20432043
}
20442044

2045-
if (adsMessage) {
2045+
const isAdsMessage = (adsMessage && adsMessage.title) || adsMessage.body || adsMessage.thumbnailUrl;
2046+
if (isAdsMessage) {
20462047
const imgBuffer = await axios.get(adsMessage.thumbnailUrl, { responseType: 'arraybuffer' });
20472048

20482049
const extension = mime.getExtension(imgBuffer.headers['content-type']);

0 commit comments

Comments
 (0)