wechat-chatgpt The stream is not readable. Maybe has already been consumed, and now it was drained.

3htmauhk  于 2023-02-16  发布在  其他
关注(0)|答案(2)|浏览(224)

cloned this project and try to save files to local disk, but when using filebox.toFile, it throws out the exception.

code:
var filebox = await message.toFileBox();
await filebox.toFile();

I saw the discussion: huan/file-box#50
but I didn't find solution, it just said we need to save it in first use.
but this is the top thing I can do, just in on('message') function.

anyway to work around?

相关问题