feat(task): enhance download progress reporting and add speed calculation

This commit is contained in:
krau
2025-02-12 11:06:25 +08:00
parent a32bf43cdc
commit a17492d4ae
3 changed files with 19 additions and 5 deletions

View File

@@ -3,6 +3,7 @@ package types
import (
"context"
"fmt"
"time"
"github.com/gotd/td/tg"
)
@@ -34,6 +35,7 @@ type Task struct {
File *File
Storage StorageType
StoragePath string
StartTime time.Time
MessageID int
ChatID int64