Commit Graph

2 Commits

Author SHA1 Message Date
meoacgx
7997b25fc6 feat: 完整支持 tdata 压缩包导入并修复会话校验链路
- 导入链路新增 tdata 识别:Zip 无 .json 时自动识别 tdata 目录并进入专用导入流程

- 新增 TdataSessionBridge:调用 Node + @mtcute/convert 将 tdata 转为 Telethon session_string,再写入 WTelegram session

- 修复 tdata 二次读取失败:ImportFromSessionFileAsync 增加 sessionKey 参数,tdata 导入时传入 apiHash,避免出现 Session exists but user not logged in

- 强化登录态判定:SessionImporter 在 client.User 为空时补充 Users_GetUsers(Self) 兜底查询

- Docker 运行时改造:Dockerfile/Dockerfile.local 改为多阶段拷贝 Node 运行时并预装 @mtcute 依赖,规避 apt 源不可达导致的构建失败

- 导入页面文案更新:明确支持 tdata 包结构及全局 ApiId/ApiHash 前置要求
2026-03-02 23:07:52 +08:00
meoacgx
1758680f3d fix: stabilize bot polling and simplify tasks 2025-12-22 19:07:31 +08:00