Update core/tasks/batchimport/execute.go

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
This commit is contained in:
Krau
2026-01-17 21:21:08 +08:00
committed by GitHub
parent b2c9d6612e
commit bb2b053fbd

View File

@@ -82,7 +82,7 @@ func (t *Task) processElement(ctx context.Context, elem TaskElement) error {
}
defer reader.Close()
// 构造 Telegram 存储路径: /<chat_id>/<filename>
// Build Telegram storage path: /<chat_id>/<filename>
storagePath := fmt.Sprintf("/%d/%s", elem.TargetChatID, elem.FileInfo.Name)
// 注入文件大小到 context