def add_friend(user_name, status=2, verify_content='', auto_update=True):
''' add a friend or accept a friend
for options
- user_name: 'user_name' for friend's info dict
- status:
- for adding status should be 2
- for accepting status should be 3
- ticket: greeting message
- userInfo: friend's other info for adding into local storage
it is defined in components/contact.py
'''
return itchat.add_friend(user_name, status, verify_content, auto_update)
评论列表
文章目录