-
-
Notifications
You must be signed in to change notification settings - Fork 2.6k
New issue
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
it seems RECALLED: 10002 message dose't trigger on('message') event #8
Comments
Hi JasLin, when you run ding-dong-bot, there should be a the |
@zixia thanks for your reply , actually , i have used wechaty in my programs. i write a robot to serve some business, and everything is ok , but the when i recalled message from my wechat in mobile, it never trigger the message event . the test code is simple: ...
.on('message', m => {
m.ready()
.then(msg => {
log.info('Bot', 'recv: %s', msg.toStringEx())
logToFile(JSON.stringify(msg.rawObj))
// test recalled message
if(msg.type() === Message.Type.RECALLED){
console.log('recalled a message')
msg.dumpRaw()
}
...
})
.catch(e => log.error('Bot', 'ready: %s' , e))
}) there is no message received after recalled some messages from mobile. BTW: thanks for wechaty again, it may be the best wecaht sdk i have seen in github. i had move my code from python to javascript after compare with wechaty and some python wechat sdk . |
相当高的评价,我也赞一个 |
@JasLin do u have any idea of how to fix this issue? i'm going to review it next week. |
@zixia i haven't dig into this issue yet, this issue not so harmfull ,or i will going to see this next week too. |
About the RECALLED Message behavior of Problem
SolutionWe need to add
TBD See Also
|
Do the solutions above have not help? |
Close this issue because the PR will be merged soon. |
* fix(wechaty-bro): resolved emit RECALLED type msg fix #8 * add(message): add getRevokeId(), Return the recalled message id * fix(wechaty-bro): modify `hookProcess` to `hookRecalledProcess` modify `_this` to `chatFactory` * fix(wechaty-bro): Remain a blank message after repairing the recall message * fix(wechaty-bro): Unify the data returned by the RECALLED type message remove Message.getRevokeId function
i tested the ding-dong-bot and recalled some message , it dose not trigger the event.
The text was updated successfully, but these errors were encountered: