From 316c556bb57aa1912d1a0956fe936d0ba0c4f755 Mon Sep 17 00:00:00 2001 From: SessionHu <102411014+SessionHu@users.noreply.github.com> Date: Tue, 8 Jul 2025 11:09:20 +0800 Subject: [PATCH] feat(opus/features.md): MODULE_TYPE_CONTENT --- docs/opus/features.md | 95 +++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 95 insertions(+) diff --git a/docs/opus/features.md b/docs/opus/features.md index 93c38ca..a52b13b 100644 --- a/docs/opus/features.md +++ b/docs/opus/features.md @@ -23,6 +23,10 @@ | commentsNewVersion | | | | | decorationCard | 是否以卡片形式显示装扮 | | 566950981753221664 | | editable | 是否在右上角三点菜单中显示 `编辑` | 必须是自己发送的动态才有效果 | 1065142062572109830 | +| opusPrivateVisible | | | | +| tribeeEdit | | | | +| avatarAutoTheme | | | | +| avatarTypeOpus | | | | ## modules @@ -640,3 +644,94 @@ + +### MODULE_TYPE_CONTENT + +根对象: + +| 字段 | 类型 | 内容 | 备注 | +| ---- | ---- | ---- | ---- | +| module_content | object | 内容模块 | | +| module_type | string | 模块类型 | `MODULE_TYPE_CONTENT` | + +`module_content` 对象: + +| 字段 | 类型 | 内容 | 备注 | +| ---- | ---- | ---- | ---- | +| paragraphs | object[] | | | + +`module_content.paragraphs[]` 对象: + +| 字段 | 类型 | 内容 | 备注 | +| ---- | ---- | ---- | ---- | +| align | number | | | +| para_type | number | | | +| text | object | | | + +`module_content.paragraphs[].text` 对象: + +| 字段 | 类型 | 内容 | 备注 | +| ---- | ---- | ---- | ---- | +| nodes | object[] | | | + +`module_content.paragraphs[].text.nodes[]` 对象: + +| 字段 | 类型 | 内容 | 备注 | +| ---- | ---- | ---- | ---- | +| type | string | | | +| word | object | | | + +`module_content.paragraphs[].text.nodes[].word` 对象: + +| 字段 | 类型 | 内容 | 备注 | +| ---- | ---- | ---- | ---- | +| font_size | number | | | +| style | object | | | +| words | string | | | + +`module_content.paragraphs[].text.nodes[].word.style` 对象: + +| 字段 | 类型 | 内容 | 备注 | +| ---- | ---- | ---- | ---- | + +**示例:** + +
+查看示例: + +```json +{ + "module_content": { + "paragraphs": [ + { + "align": 0, + "para_type": 1, + "text": { + "nodes": [ + { + "type": "TEXT_NODE_TYPE_WORD", + "word": { + "font_size": 17, + "style": {}, + "words": "欢迎使用咱开发的 TG 机器人, 自由开源, 目前支持很多功能, 如 天气查询, IP 查询, 甚至可以执行 Shell 命令\nSINO Is Not Object! " + } + }, + { + "type": "TEXT_NODE_TYPE_WORD", + "word": { + "font_size": 17, + "style": {}, + "words": "https://t.me/SessX6cfBot" + } + } + ] + } + } + ] + }, + "module_type": "MODULE_TYPE_CONTENT" +} +``` +
+ +