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

@@ -6,18 +6,11 @@ import (
type ReceivedFile struct {
gorm.Model
// FileUniqueID 和 FileID 在数据库中均不具有唯一性
// 如需确定唯一一行, 使用 ChatID + MessageID
FileUniqueID string `gorm:"index"`
FileID string `gorm:"index"`
Processing bool
FileName string
FilePath string
FileSize int64
MediaGroupID string
ChatID int64
MessageID int
ReplyMessageID int
MessageID int32
ReplyMessageID int32
}
type User struct {