Skip to content

Commit

Permalink
fix(all): Create bot working again.
Browse files Browse the repository at this point in the history
  • Loading branch information
rodrigorodriguez committed Jul 18, 2023
1 parent 6e6ca3a commit 3fd3213
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/basic.gblib/services/DialogKeywords.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit 3fd3213

Please sign in to comment.