`Contact.friend()` 的定义是“对方是否把我当好友”,现在请求增加“我是否把对方当好友”的接口。
Created by: xinbenlv
Is your feature request related to a problem? Please describe. A clear and concise description of what the problem is. Ex. I'm always frustrated when [...] N/A Describe the solution you'd like A clear and concise description of what you want to happen. N/A Describe alternatives you've considered A clear and concise description of any alternative solutions or features you've considered. N/A Additional context 我在使用wechaty 和padpro,版本号如下
"wechaty": "^0.22.6",
"wechaty-puppet-padpro": "0.0.58"
问题的背景:我好友满了,需要自动删除好友。
WeChaty 定义了一个Contact.friend()
的函数,返回的一个boolean
,我发现以前是好友关系的情况,现在friendship变成单向关系了。也就是说,目前在 Contact.friend()
返回的是对方是否把我当好友(payload.friend == true
),而不是我是否把对方当好友(也就是,这个联系人是否占用我的好友名额)。
例如
{
"domain": null,
"_events": {},
"_eventsCount": 0,
"id": "<隐去id>",
"payload": {
"alias": "",
"avatar": "<隐去头像>",
"city": "Hangzhou",
"gender": 2,
"id": "<隐去id>",
"name": "<隐去name>",
"province": "Zhejiang",
"signature": "该号已停用",
"type": 1,
"weixin": "",
"friend": true
}
}
现在我的问题是 1.是否有可能定义一个“我的好友”这个接口 Contact.friend()变成
Contact.friend() // 对方是否把我当成好友
Contact.myFriend() // 我是否是对方的好友。
并且我并不知道padpro的底层是否支持这个信息。
[enhancement]