📅 TeleBox 日报 - 2026-07-12
📊 今日提交统计
• 总提交数: 31
• TeleBox: 10 次提交
• TeleBox_Plugins: 21 次提交
🔌 插件更新
• aban: 移除 ban/sb 的预检查管理员权限——避免误判,由 Telegram API 实际返回错误
• audio_to_voice: audio_to_voice / eatgif / music — exec 改用 execFile 防止命令注入
• bf: 提取公共 htmlEscape 函数,修复 help.ts Api 命名空间/sure.ts mainPrefix 缺失/bf.ts 重复 import
• eatgif:
- eatgif.ts — 绕过头像下载超时重试链
- audio_to_voice / eatgif / music — exec 改用 execFile 防止命令注入
• fbi:
- 修复 3 个 bug 并清理冗余代码 (#253)
- fbi.ts — 修复 Entity 联合类型断言和 EditMessage parseMode 类型错误
• getstickers: getstickers — exec 改用 execFile 防止命令注入
• help: 提取公共 htmlEscape 函数,修复 help.ts Api 命名空间/sure.ts mainPrefix 缺失/bf.ts 重复 import
• leech: 提取公共 htmlEscape 函数,修复 help.ts Api 命名空间/sure.ts mainPrefix 缺失/bf.ts 重复 import
• music: audio_to_voice / eatgif / music — exec 改用 execFile 防止命令注入
• ping:
- ping.ts — 移除 require() 改用 ESM import,清理 console.log 调试输出
- ping.ts — pingDataCenters 移除 execAsync shell 管道,改用 execFile + JS 正则解析
• q:
- 移除 q 插件(已移至 outdated/)
- 同步 q 插件到插件仓库并注册到索引
• quote:
- quote.ts — 修复 upload.GetFile 返回类型断言
- quote — bypass MediaScheduler for avatar/emoji downloads (v1.09)
- quote — wrap all internal RPCs with withTimeout (v1.08)
- quote — revert downloadEntityAvatar to original logic (v1.07)
- quote.ts — 修复 catch 变量类型断言 (TS2339)
- quote — bump v1.06
- quote — 补充 downloadEntityAvatar 的 client 兜底获取逻辑
- quote — 补全 getGlobalClient import
• reload: 提取公共 htmlEscape 函数,修复 help.ts Api 命名空间/sure.ts mainPrefix 缺失/bf.ts 重复 import
• ssh: ssh.ts — 移除 shell 命令拼接
• status: status.ts — 修复模板保存提示中 ${mainPrefix} 未插值(双引号改为模板字面量)
• sticker_to_pic: sticker_to_pic — convert 命令改用 execFileSync 防止命令注入
• sure: 提取公共 htmlEscape 函数,修复 help.ts Api 命名空间/sure.ts mainPrefix 缺失/bf.ts 重复 import
• tpm:
- 提取公共 htmlEscape 函数,修复 help.ts Api 命名空间/sure.ts mainPrefix 缺失/bf.ts 重复 import
- auto-update 状态消息删除失败——根因:reloadRuntime 后新 client 未就绪
- auto-update plugin summary message not deleted after success
• update:
- auto-update 状态消息删除失败——根因:reloadRuntime 后新 client 未就绪
- autoUpdateMainRepo — 主仓库自动更新后 statusMsg client 失效,改用快照 peerId+msgId + 新 client 删除
- auto-update plugin summary message not deleted after success
- autoUpdatePlugins — 插件重载后 statusMsg 内部 client 失效,改用快照 peerId+msgId + 新 client 删除
- 移除 execAsync,统一用 execFileAsync(解决其他实例 'execAsync is not defined')
• xmsl: xmsl.ts — 修复帮助命令前缀插值
• yvlu: yvlu.ts — 绕过头像/媒体/表情下载的 MediaScheduler 超时重试链
🏗️ 本体更新
• 逐行核实更新开发文档——修正模块列表、文件计数、import路径、删除不存在的插件引用
Post #209
311