Skip to content

get_filtered_friend_notifications ​

获取过滤好友通知。

适用协议

Android(手机 / 平板);Linux QQ 支持情况待核验。

调用方式 ​

json
{
  "type": "action",
  "id": "get_filtered_friend_notifications-1",
  "action": "get_filtered_friend_notifications",
  "params": {
    "self_id": 123456789,
    "protocol_id": 0
  }
}

参数 ​

参数类型必填说明
self_idnumber是当前框架内的 QQ 号,5–10 位整数。
protocol_idnumber是明确选择账号协议,0 有效;使用 get_protocol_list 查询。
page_sizenumber否每页 1–50 条,默认 50;不能为 null。
cookiestring否上次返回的标准 Base64 游标,首次省略;不能为 null。

返回值 ​

字段类型说明
notificationsobject[]过滤的好友申请。
total_countnumber本页数量,并非所有页总数。
cookiestring标准 Base64 下一页游标。
has_moreboolean是否存在下一页。

notifications 字段 ​

字段类型说明
user_idnumberQQ 号。
nicknamestring昵称。
commentstring申请附言。
sourcestringsource。
reasonstringreason。
request_timenumberrequest time。
agenumberage。
sexnumbersex。
group_idnumber群号。
common_friend_countnumbercommon friend count。

注意事项 ​

cookie 必须是标准 Base64,page_size / cookie 不能为 null。下一页传回本次 cookie,直到 has_more 为 false。

萌卡 · 自托管 QQ 机器人框架