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