wechaty/wechaty-puppet-padchat
在 GitHub 查看The ShareCard message get error when use function "toContact()"
Open
#202 创建于 2018年10月31日
enhancementhelp wanted
描述
0. Report Issue Guide
Please search in the issue first, and make sure your problem had not been reported before.
1. Provide Your Package Version
-
What is your wechaty version? Answer:0.23.18
-
What is your wechaty-puppet-padchat version? Answer:0.16.2
2. Expected behavior
Question: What behavior do you expect?
Answer: "toContact()" works well
3. Actual behavior
Question: What actual behavior did you experience?
Answer: get error "message not a ShareCard"
4. Steps to reproduce your problem (and fixes, if any)
This part is very important: if you can not provide any reproduce steps, then the problem will be very hard to be recognized.
Question: What're the reproducible steps for us to see your problem?
Answer: send/receive ShareCard message to/from friend
5. Full Output Logs
$ WECHATY_LOG=silly node yourbot.js
Question: Paste your FULL(DO NOT ONLY PROVIDE FRAGMENTS) log messages
Answer:
Message#Contact(🗣Contact<微笑代表淡定>👤Contact<Ace™🎾Hubert>)
14:58:31 WARN Message toContact() to be implemented
Error: message not a ShareCard
at AnotherOriginalClass.<anonymous> (D:\WorkSpace\.hubert\wechatspy\node_modules\wechaty\dist\src\user\message.js:723:23)
at Generator.next (<anonymous>)
at D:\WorkSpace\.hubert\wechatspy\node_modules\wechaty\dist\src\user\message.js:7:71
at new Promise (<anonymous>)
at __awaiter (D:\WorkSpace\.hubert\wechatspy\node_modules\wechaty\dist\src\user\message.js:3:12)
at AnotherOriginalClass.toContact (D:\WorkSpace\.hubert\wechatspy\node_modules\wechaty\dist\src\user\message.js:720:16)
at Wechaty.bot.on.on.on (D:\WorkSpace\.hubert\wechatspy\main\docker.js:48:39)