fix(whatsapp.gblib): SEND FILE sending bug.
This commit is contained in:
parent
08607e49bb
commit
7eeadfa92d
1 changed files with 10 additions and 0 deletions
|
@ -290,6 +290,16 @@ export class WhatsappDirectLine extends GBService {
|
|||
from = req.body.messages[0].author.split('@')[0];
|
||||
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) {
|
||||
res.end();
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue