Skip to content

Commit

Permalink
Update bot.ts
Browse files Browse the repository at this point in the history
  • Loading branch information
idranme authored Aug 5, 2023
1 parent cf1f132 commit 6a3717e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion adapters/telegram/src/bot.ts
Original file line number Diff line number Diff line change
Expand Up @@ -270,7 +270,7 @@ export class TelegramBot<T extends TelegramBot.Config = TelegramBot.Config> 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 }
Expand Down

0 comments on commit 6a3717e

Please sign in to comment.