fix(whatsapp.gblib): SEND FILE sending bug.

This commit is contained in:
Rodrigo Rodriguez 2022-08-06 15:59:59 -03:00
parent 08607e49bb
commit 7eeadfa92d

View file

@ -290,6 +290,16 @@ export class WhatsappDirectLine extends GBService {
from = req.body.messages[0].author.split('@')[0]; from = req.body.messages[0].author.split('@')[0];
fromName = req.body.messages[0].senderName; fromName = req.body.messages[0].senderName;
if (message.type !== 'chat') {
attachments = [];
attachments.push(
{
name: 'uploaded',
contentType: 'application/octet-stream',
contentUrl: message.body
});
}
if (req.body.messages[0].fromMe) { if (req.body.messages[0].fromMe) {
res.end(); res.end();