You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
but it ceased working since I don't know when.
Maybe after I switched to wechaty-puppet-padplus?
Describe the solution you'd like
A simple demo would be appreciated.
Maybe just add another case to reply with an image in the ding-dong-bot.js or media-file-bot.js file, thanks.
[enhancement]
The text was updated successfully, but these errors were encountered:
Found the problem is my added await msg.say(JSON.stringify(fileBox)), which gave me:
(node:57222) UnhandledPromiseRejectionWarning: Error: FileBox.toJSON() can only work on limited FileBoxType(s). See: <https://github.com/huan/file-box/issues/25>
at FileBox.toJSON (/.../nodejs/node_modules/file-box/dist/src/file-box.js:303:23)
at JSON.stringify (<anonymous>)
It's just a plain .png file. Removing that line and things are working again.
thx again!
Is your feature request related to a problem? Please describe.
How to send an image from a file on disk to people/chart-room via wechaty?
I had the following in my code, which had been working fine before,
but it ceased working since I don't know when.
Maybe after I switched to wechaty-puppet-padplus?
Describe the solution you'd like
A simple demo would be appreciated.
Maybe just add another case to reply with an image in the ding-dong-bot.js or media-file-bot.js file, thanks.
[enhancement]
The text was updated successfully, but these errors were encountered: