feat: print images in chat

This commit is contained in:
max_richter 2025-05-09 19:39:54 +02:00
parent 6f9717f530
commit 46519ef1ea
Signed by: max
GPG Key ID: 51973802EF3F77C5

View File

@ -63,7 +63,9 @@ bot.command("end", async (ctx) => {
task.noteName.replace(/\.md$/, "")
}/photo-${photoIndex}.jpg`;
finalNote += `![image](${photoUrl})\n\n`;
finalNote += `![image](data:image/jpeg;base64,${
btoa(String.fromCharCode(...(entry.content as Uint8Array)))
})\n\n`;
photoTasks.push({
content: entry.content as Uint8Array,
path: photoUrl,