fix(all): Create bot working again.

This commit is contained in:
Rodrigo Rodriguez 2023-07-18 13:09:17 -03:00
parent 6e6ca3a21f
commit 3fd3213740

View file

@ -1179,8 +1179,8 @@ export class DialogKeywords {
const imageData = await (await fetch(url)).arrayBuffer(); const imageData = await (await fetch(url)).arrayBuffer();
const base64Image = Buffer.from(imageData).toString('base64'); const base64Image = Buffer.from(imageData).toString('base64');
const contentType = mime.getType(url); const contentType = mime.lookup(url);
const ext = mime.getExtension(contentType); const ext = mime.extension(contentType);
reply['attachments'] = []; reply['attachments'] = [];
reply['attachments'].push({ reply['attachments'].push({
name: filename, name: filename,