From 3fd3213740e766da510c37461d23877dc34e6cff Mon Sep 17 00:00:00 2001 From: Rodrigo Rodriguez Date: Tue, 18 Jul 2023 13:09:17 -0300 Subject: [PATCH] fix(all): Create bot working again. --- packages/basic.gblib/services/DialogKeywords.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/basic.gblib/services/DialogKeywords.ts b/packages/basic.gblib/services/DialogKeywords.ts index e57645c3..f13b8f98 100644 --- a/packages/basic.gblib/services/DialogKeywords.ts +++ b/packages/basic.gblib/services/DialogKeywords.ts @@ -1179,8 +1179,8 @@ export class DialogKeywords { const imageData = await (await fetch(url)).arrayBuffer(); const base64Image = Buffer.from(imageData).toString('base64'); - const contentType = mime.getType(url); - const ext = mime.getExtension(contentType); + const contentType = mime.lookup(url); + const ext = mime.extension(contentType); reply['attachments'] = []; reply['attachments'].push({ name: filename,