Closed JuoJuo closed 1 year ago
ok, I will check it
thanks
@leochen-g have you found out why?
@leochen-g have you found out why?
I've tested it and found no problems. Perhaps you need to give a mini case.
"wechaty": "^1.0.0",
"wechaty-puppet-wechat4u": "^1.13.11"
const { WechatyBuilder } = require('wechaty');
const { PuppetWechat4u } = require('wechaty-puppet-wechat4u');
const wechaty = WechatyBuilder.build({
puppet: new PuppetWechat4u(),
name: 'www',
});
wechaty
.on('scan', (qrcode, status) =>
console.log(
`Scan QR Code to login: ${status}\nhttps://wechaty.js.org/qrcode/${encodeURIComponent(
qrcode
)}`
)
)
.on('login', user => console.log(`User ${user} logged in`))
.on('message', async msg => {
const room = msg.room();
if (room && msg.type() === wechaty.Message.Type.Image) {
await msg.forward(room);
}
});
wechaty.start();
@leochen-g by the way can you give me a starter code for forward img?
I have submitted PR to wechat4u, please keep following.
It is normal for you to forward messages from contacts
@leochen-g thanks! It works fine. 👍
forward picrure always fail.