Open davieds opened 7 years ago
使用获取头像的方法 bot.self.get_avatar('./%s'%bot.self.name) 提示 :TypeError: expected Friend, Group or Member, got<class 'wxpy.api.chats.user.User'> 这是只能获取 Friend Group Member 类型的吗?
bot.self.get_avatar('./%s'%bot.self.name)
Friend
Group
Member
<class 'wxpy.api.chats.user.User'>
yes , only Friend Group Member , but you can use is_friend return a Friend object , then you can use get_avatar
is_friend
get_avatar
bot.self.is_friend.get_avatar('myself_avatar.png')
使用获取头像的方法
bot.self.get_avatar('./%s'%bot.self.name)
提示 :TypeError: expectedFriend
,Group
orMember
, got<class 'wxpy.api.chats.user.User'>
这是只能获取 Friend Group Member 类型的吗?