Skip to content
This repository has been archived by the owner on Aug 5, 2020. It is now read-only.

Commit

Permalink
adding friend/mp by wxid is now not available
Browse files Browse the repository at this point in the history
  • Loading branch information
youfou committed May 13, 2017
1 parent 1c03a47 commit 3d30a7a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions wxpy/api/bot.py
Original file line number Diff line number Diff line change
Expand Up @@ -282,7 +282,7 @@ def add_friend(self, user, verify_content=''):
"""
添加用户为好友
:param user: 用户对象,或 user_name,或用户的微信ID
:param user: 用户对象,或 user_name
:param verify_content: 验证说明信息
"""

Expand All @@ -302,7 +302,7 @@ def add_mp(self, user):
"""
添加/关注 公众号
:param user: 公众号对象,或 user_name, 或公众号的微信ID
:param user: 公众号对象,或 user_name
"""

logger.info('{}: adding {}'.format(self, user))
Expand Down
2 changes: 1 addition & 1 deletion wxpy/api/chats/groups.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ def __init__(self, group_list=None):
# 因此加一个保护逻辑: 只返回"包含自己的群"

super(Groups, self).__init__(
list(filter(lambda x: x.bot.self in x, group_list))
filter(lambda x: x.bot.self in x, group_list)
)

def search(self, keywords=None, users=None, **attributes):
Expand Down

0 comments on commit 3d30a7a

Please sign in to comment.