Closed GaryDu0123 closed 2 years ago
Please tell me the version of wechaty-puppet-version
.
From the description of your log, I believe that you call contact_self_name
handly and not awaited which is not correct.
If you want to change the name of bot, you can use ContactSelf
. Hope that can help you.
https://github.com/wechaty/python-wechaty/pull/289#discussion_r780790984
Because it wasn't decorated with async, so I can't use await
right (correct me if I am wrong, thanks)
After reviewing the code of ContactSelf
module, it's absolutely a bug which use async.run
code block to run async based method.
requirements
Error occurred when use setter contactSelf.name change the bot username
Reproduce your problem
Error info