Skip to content
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

无法自动添加好友 #30

Open
jinde98 opened this issue Mar 16, 2024 · 0 comments
Open

无法自动添加好友 #30

jinde98 opened this issue Mar 16, 2024 · 0 comments

Comments

@jinde98
Copy link

jinde98 commented Mar 16, 2024

用的代码是

@itchat.msg_register(FRIENDS)
def add_friend(msg):
print(msg)
msg.user.verify()
msg.user.send('很高兴认识你')
出错提示如下:
File "/home/jd/.local/lib/python3.10/site-packages/itchat/components/register.py", line 60, in configured_reply
r = replyFn(msg)
File "/home/jd/wechat/wechatbot.py", line 57, in add_friend
msg.user.verify()
File "/home/jd/.local/lib/python3.10/site-packages/itchat/storage/templates.py", line 158, in verify
return self.core.add_friend(**self.verifyDict)
AttributeError: 'Core' object has no attribute 'add_friend'. Did you mean: 'get_friends'?
说没有add_friend 这个属性

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant