消息格式
消息接收格式
消息类型/平台 | 参数说明 | LR5921 私聊 | LR232 私聊 | BILI | LR5921 群聊 | LR232 群聊 | |
---|---|---|---|---|---|---|---|
接收 | 无 | √ | √ | √ | √ | √ | √ |
添加 | 无 | √ | √ | √ | √ | 不处理 | 不处理 |
删除 | 无 | x | 不处理 | 不处理 | x | 不处理 | 不处理 |
撤回 | xx 撤回了 xx 的消息 | √ | 无法接收 | 无法接收 | x | √ | x |
戳戳 | xx x了x xx 的xx | √ | x | x | x | √ | x |
回应 | [表情:xx] | x | x | x | x | √ | x |
设精 | xx 给 xx 的消息设置了精华 | x | x | x | x | √ | x |
消息发送格式
其中 /n 代表 xx=None
| 发送 | dispatch(content,kind/n,user/n,group/n,num/n,seq/n,order/n) | x | x | √ | √ | x | √ |
| 下载 | download(media_id) | x | x | x | x | x | √ |
| 上传 | file_upload(type,path) | x | x | x | x | x | √ |
| 签到 | sign_in(group) | x | x | 无论成功与否都是 ok | x | x | x |
| 戳戳 | poke(user,group/n) | x | x | 无论成功与否都是 ok | 测试失败 | x | x |
| 分享 | share(num,user/n,group/n) | x | x | √ | √ | x | x |
| 状态设置 | status(status, ext_status, battery_status,id,word) | x | x | 无论成功与否都是 ok | x | x | x |
| 回应 | echo(seq,emoji) | x | x | √ | x | x | x |
| 签名 | signature(sign) | x | x | x | √ | √ | x |
| 消息获取 | msg_get(seq,num/n, user/) | x | x | x | √ | x | x |
| 状态获取 | status_get(num,user) | x | x | x | √ | x | x |
| 转发 | forward(group, nickname, content, news, prompt, summary, source) | x | x | √ | x | x | x |
| 转发单条 | forward_single(id,user/n,group/n) | x | x | √ | √ | x | x |
| 撤回 | withdraw(seq,user/n,kind/n) | x | x | √ | √ | x | x |
| 精华 | essence(id,content/n) | x | x | √ | x | x | x |
| 头衔 | title(user,group,title) | x | x | √ | x | x | x |
| 列表 | list(num,group) | x | x | √ | x | x | x |
| 消息已读 | msg_read(user) | x | x | x | x | √ | x |
| 回应查看 | reply_check | x | x | x | x | x | √ |
| 系统消息 |
- LR5921:
- 精华:有时是管理员但无法设置精华
- 群成员名片更新:无法检测
- 发送消息:若别人主动开启临时会话即可发送
- 戳戳消息:榴莲、平底锅等无法解析
- 添加好友:开启了任何人都能添加好友则不会收到对应 request
- 设置已读:不需要
- 临时消息:取消处理,原处理方法如下:
sender = data.get("sender")
nickname = sender.get("nickname", "")
if nickname == "临时会话":
kind += "临时"- 英译中: /translate_en2zh 测试失败
- 获取点赞列表: /get_profile_like 测试失败
- 获取群聊表情回应列表: 测试失败
- 发送音乐卡片:测试失败,id 不知道
- 点赞他人: 感觉不需要
- 获取收藏表情:感觉不需要