From 6a3717eece218a96f3ff5917b1828243c0d5f5e1 Mon Sep 17 00:00:00 2001 From: idanran <96647698+idanran@users.noreply.github.com> Date: Sat, 5 Aug 2023 22:22:06 +0800 Subject: [PATCH] Update bot.ts --- adapters/telegram/src/bot.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/adapters/telegram/src/bot.ts b/adapters/telegram/src/bot.ts index 585951d8..8926273f 100644 --- a/adapters/telegram/src/bot.ts +++ b/adapters/telegram/src/bot.ts @@ -270,7 +270,7 @@ export class TelegramBot exte } let { mime, data } = await this.$getFile(filePath) if (mime === 'application/octet-stream') { - mime = await FileType.fromBuffer(data)?.mime + mime = (await FileType.fromBuffer(data))?.mime } const base64 = `data:${mime};base64,` + arrayBufferToBase64(data) return { url: base64 }