访问好友的宠物页面。
调用
const result = await api.visit_friend_pet(self_id, friend_id, friend_pet_id)
参数
| 参数 | 类型 | 必填 | 说明 |
|---|---|---|---|
self_id |
number | 是 | 在线 Bot QQ 号 |
friend_id |
number | 是 | 好友 QQ 号 |
friend_pet_id |
string | 否 | 已缓存的好友宠物 ID;传入后跳过受客户端版本限制的好友资料解析 |
访问上报同时需要好友 QQ 和好友宠物 ID,因此 friend_pet_id 是新增可选参数,不会替代或改变原 friend_id 的语义。
返回值
{
success: true,
friend_id: '123456789',
pet_id: 'PET_ID',
pet_name: '好友宠物',
visited: true,
rule_count: 1,
}