refactor: use MTP API

This commit is contained in:
krau
2024-10-12 12:47:33 +08:00
parent 5ef7c5ce60
commit 5d6b1003e9
13 changed files with 183 additions and 357 deletions

View File

@@ -24,17 +24,15 @@ var StorageTypes = []StorageType{Local, Alist, Webdav, StorageAll}
type Task struct {
Ctx context.Context
FileID string
Error error
Status TaskStatus
FilePath string // telegram File object's FilePath
FileName string
Storage StorageType
StoragePath string
// For track progress
MessageID int32
ChatID int64
ReplyMessageID int
ReplyMessageID int32
}
func (t *Task) String() string {