We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
部分图片不勾选为原图发送,wechaty接收到消息之后 message.toFileBox 无响应,图片无法保存下来
.on('message',async message=>{ if (message.type() === 6) { const fileBox = await message.toFileBox(); await fileBox.toFile(); } })
图片能够正常保存到本地
图片没有被保存
无任何日志输出
[bug]
The text was updated successfully, but these errors were encountered:
我根据你提供的复现代码,是可以下载图片的。 图片会默认保存在根目录,类似1601427582.jpg这样的名字 可以在toFile()方法内添加参数指定图片的存储位置,例如await fileBox.toFile('/tmp/logo.jpg')
Sorry, something went wrong.
有些图片是会出现问题的,需要勾选原图
No branches or pull requests
1. 提供你的包版本信息
2. Bug 描述
部分图片不勾选为原图发送,wechaty接收到消息之后 message.toFileBox 无响应,图片无法保存下来
3. 复现的步骤 (或者解决的步骤)
相关代码:
4. 期待程序运行的结果
图片能够正常保存到本地
5. 程序实际运行的结果
图片没有被保存
6. 完整的日志信息:
无任何日志输出
[bug]
The text was updated successfully, but these errors were encountered: