mirror of
https://github.com/krau/SaveAny-Bot.git
synced 2026-05-25 18:20:27 +08:00
refactor: use MTP API
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user