From 3d30a7a6e1db64ae7689c459468449e3c8f04865 Mon Sep 17 00:00:00 2001 From: youfou Date: Sun, 14 May 2017 07:17:54 +0800 Subject: [PATCH] adding friend/mp by wxid is now not available --- wxpy/api/bot.py | 4 ++-- wxpy/api/chats/groups.py | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/wxpy/api/bot.py b/wxpy/api/bot.py index 4294c80..9411a9f 100644 --- a/wxpy/api/bot.py +++ b/wxpy/api/bot.py @@ -282,7 +282,7 @@ def add_friend(self, user, verify_content=''): """ 添加用户为好友 - :param user: 用户对象,或 user_name,或用户的微信ID + :param user: 用户对象,或 user_name :param verify_content: 验证说明信息 """ @@ -302,7 +302,7 @@ def add_mp(self, user): """ 添加/关注 公众号 - :param user: 公众号对象,或 user_name, 或公众号的微信ID + :param user: 公众号对象,或 user_name """ logger.info('{}: adding {}'.format(self, user)) diff --git a/wxpy/api/chats/groups.py b/wxpy/api/chats/groups.py index 3cce343..4271703 100644 --- a/wxpy/api/chats/groups.py +++ b/wxpy/api/chats/groups.py @@ -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):