Skip to content
Merged
Show file tree
Hide file tree
Changes from 9 commits
Commits
Show all changes
19 commits
Select commit Hold shift + click to select a range
fad4cd9
feat: 为 Misskey 适配器修正一些问题,添加投票信息读取支持
PaloMiku Oct 8, 2025
3d0e269
feat: 增强 Misskey 平台适配器,添加随机重连延迟和通道重新订阅功能
PaloMiku Oct 8, 2025
a778ab6
feat: 添加文件上传功能并优化消息发送接口,支持同时发送文件和文本
PaloMiku Oct 8, 2025
c032ef3
feat: 增强文件上传功能,支持 MIME 类型检测和外部 URL 回退
PaloMiku Oct 8, 2025
0368fac
feat: 增加 Misskey 文件上传功能开关,支持配置文件上传启用与并发限制
PaloMiku Oct 8, 2025
7be77eb
feat: 添加 Misskey 文件上传目标文件夹配置,支持将文件上传到指定文件夹
PaloMiku Oct 8, 2025
1cf7a76
feat: 优化 Misskey 平台适配器,增强文件上传和消息发送功能,支持更多可选字段
PaloMiku Oct 8, 2025
c911500
feat: 代码优化结构与功能
PaloMiku Oct 8, 2025
f1d125c
feat(misskey): 增强消息发送逻辑和工具函数
PaloMiku Oct 9, 2025
dedbf6d
feat(misskey): 限制文件上传并发数,优化消息处理逻辑
PaloMiku Oct 9, 2025
d49faab
feat(misskey): ruff formatted
PaloMiku Oct 9, 2025
8cf55be
feat: 大幅优化 misskey 文件上传逻辑,简化上传流程并增强可见性解析
PaloMiku Oct 15, 2025
5d69256
feat(misskey): 移除 Url上传方式,精简日志
PaloMiku Oct 15, 2025
5b6f2df
fix(misskey): 修复错把URL文件当本地文件上传的问题,明确处理 URL 和本地文件的方式
PaloMiku Oct 15, 2025
dbe2bae
fix(misskey): 修复 session_id 解析逻辑,确保与 user_cache 键格式匹配
PaloMiku Oct 15, 2025
61fd02f
perf: streaming the file with a file object in FormData to reduce pea…
Soulter Oct 16, 2025
74b6421
style: format debug log message for local file upload in MisskeyAPI
Soulter Oct 16, 2025
8bdc006
Merge remote-tracking branch 'origin/master' into feature/misskey-ada…
Soulter Oct 16, 2025
3a4cb55
refactor: remove unnecessary thread executor for reading file bytes i…
Soulter Oct 16, 2025
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
43 changes: 43 additions & 0 deletions astrbot/core/config/default.py
Original file line number Diff line number Diff line change
Expand Up @@ -254,6 +254,14 @@
"misskey_default_visibility": "public",
"misskey_local_only": False,
"misskey_enable_chat": True,
# download / security options
"misskey_allow_insecure_downloads": False,
"misskey_download_timeout": 15,
"misskey_download_chunk_size": 65536,
"misskey_max_download_bytes": None,
"misskey_enable_file_upload": True,
"misskey_upload_concurrency": 3,
"misskey_upload_folder": "",
},
"Slack": {
"id": "slack",
Expand Down Expand Up @@ -382,6 +390,41 @@
"type": "bool",
"hint": "启用后,机器人将会监听和响应私信聊天消息",
},
"misskey_enable_file_upload": {
"description": "启用文件上传到 Misskey",
"type": "bool",
"hint": "启用后,适配器会尝试将消息链中的文件上传到 Misskey 并在消息中附加 media(fileIds)。",
},
"misskey_allow_insecure_downloads": {
"description": "允许不安全下载(禁用 SSL 验证)",
"type": "bool",
"hint": "仅作为最后回退手段:当远端服务器存在证书问题导致无法正常下载时,允许临时禁用 SSL 验证以获取文件。启用有安全风险,请谨慎使用。",
},
"misskey_download_timeout": {
"description": "远端下载超时时间(秒)",
"type": "int",
"hint": "用于计算 URL 文件 MD5 或回退下载时的总体超时时间(秒)。",
},
"misskey_download_chunk_size": {
"description": "流式下载分块大小(字节)",
"type": "int",
"hint": "流式下载和计算 MD5 时使用的每次读取字节数,过小会增加开销,过大会占用内存。",
},
"misskey_max_download_bytes": {
"description": "最大允许下载字节数(超出则中止)",
"type": "int",
"hint": "如果希望限制下载文件的最大大小以防止 OOM,请填写最大字节数;留空或 null 表示不限制。",
},
"misskey_upload_concurrency": {
"description": "并发上传限制",
"type": "int",
"hint": "同时进行的文件上传任务上限(整数,默认 3)。",
},
"misskey_upload_folder": {
"description": "上传到网盘的目标文件夹 ID",
"type": "string",
"hint": "可选:填写 Misskey 网盘中目标文件夹的 ID,上传的文件将放置到该文件夹内以避免账号网盘根目录混乱。留空则使用默认位置。",
},
"telegram_command_register": {
"description": "Telegram 命令注册",
"type": "bool",
Expand Down
Loading