mirror of
https://github.com/EvolutionAPI/evolution-api.git
synced 2025-07-16 04:02:54 -06:00
fix: receive messages on chatwoot
This commit is contained in:
parent
bc751bbb6b
commit
84451ba3e0
@ -2042,7 +2042,8 @@ export class ChatwootService {
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (adsMessage) {
|
const isAdsMessage = (adsMessage && adsMessage.title) || adsMessage.body || adsMessage.thumbnailUrl;
|
||||||
|
if (isAdsMessage) {
|
||||||
const imgBuffer = await axios.get(adsMessage.thumbnailUrl, { responseType: 'arraybuffer' });
|
const imgBuffer = await axios.get(adsMessage.thumbnailUrl, { responseType: 'arraybuffer' });
|
||||||
|
|
||||||
const extension = mime.getExtension(imgBuffer.headers['content-type']);
|
const extension = mime.getExtension(imgBuffer.headers['content-type']);
|
||||||
|
Loading…
Reference in New Issue
Block a user