Closed why2lyj closed 4 years ago
Important:Please file the issue follow the template, or we won't help you to solve the problem.
What is your wechaty version? Answer: python-wechaty:0.6.7, python-puppet:0.0.16, python-puppet-hostie:0.2.12
What is your wechaty-puppet-donut version? Answer: as above
What is your node version? (run node --version) Answer: without node
node --version
What os are you using Answer: Window7 and docker images python3.7-slim
Event 'friendship' can't touch off
bot = Wechaty().on('friendship', xxx_function) await bot.start()
2020-08-07 15:11:41,323 - Wechaty - INFO - receive <friendship> event <EventFriendshipPayload(friendship_id='4737034829204869855')> 2020-08-07 15:11:41,323 - FriendShip - INFO - Friendship constructor 4737034829204869855 2020-08-07 15:11:41,325 - FriendShip - INFO - ready() sync the friendship payload 2020-08-07 15:11:41,404 - FriendShip - INFO - get hello message <添加好友测试> of friendship <FriendshipPayloadResponse(id='4737034829204869855', contact_id='wxid_vfvfj40w8j6z22', hello='添加好友测试', type=2, stranger='v1_320ddbe36f749accb5004445f5f617feb76de39d175d4fead70ee58cff3e69836adc2753aa9ea84756608ddeae13ad33@stranger', ticket='v4_000b708f0b0400000100000000003baf758d70799fd94cc0acfe2c5f1000000050ded0b020927e3c97896a09d47e6e9e0246e036c498b8591641bb7704b5c240d606ef3a112f11e788fb50fc98ea02236441728eeba3815a9376f05eac9baa2cd153f627b7bdc08e814da0f8b63b186cf2abc588a39899d174d98f7d74b7afea90aac2dd33d316cb5c634ab3e7db0e495c0aeddf6b5d18bc13@stranger', scene=30)> 2020-08-07 15:11:41,404 - Wechaty - ERROR - internal error <'Contact' object has no attribute '_events'>
after Wechat PC client upgrade, this event can't touch off anymore
[bug]
Thanks for your issue, please make sure it will happen in ts wechaty.
issue seems cause from python-wechaty, close this issue.
python-wechaty
1. Versions
What is your wechaty version? Answer: python-wechaty:0.6.7, python-puppet:0.0.16, python-puppet-hostie:0.2.12
What is your wechaty-puppet-donut version? Answer: as above
What is your node version? (run
node --version
) Answer: without nodeWhat os are you using Answer: Window7 and docker images python3.7-slim
2. Describe the bug
Event 'friendship' can't touch off
3. To Reproduce
4. Expected behavior
5. Actual behavior
6. Full Output Logs
7. Additional context
after Wechat PC client upgrade, this event can't touch off anymore
[bug]