mirror of
https://github.com/krau/SaveAny-Bot.git
synced 2026-05-19 06:19:31 +08:00
feat: support save content protect channel message by handle link
This commit is contained in:
@@ -10,6 +10,7 @@ type ReceivedFile struct {
|
||||
ChatID int64 `gorm:"uniqueIndex:idx_chat_id_message_id;not null"`
|
||||
MessageID int `gorm:"uniqueIndex:idx_chat_id_message_id;not null"`
|
||||
ReplyMessageID int
|
||||
ReplyChatID int64
|
||||
FileName string
|
||||
}
|
||||
|
||||
|
||||
@@ -37,13 +37,14 @@ type Task struct {
|
||||
StoragePath string
|
||||
StartTime time.Time
|
||||
|
||||
MessageID int
|
||||
ChatID int64
|
||||
FileMessageID int
|
||||
FileChatID int64
|
||||
ReplyMessageID int
|
||||
ReplyChatID int64
|
||||
}
|
||||
|
||||
func (t Task) String() string {
|
||||
return fmt.Sprintf("[%d:%d]:%s", t.ChatID, t.MessageID, t.File.FileName)
|
||||
return fmt.Sprintf("[%d:%d]:%s", t.FileChatID, t.FileMessageID, t.File.FileName)
|
||||
}
|
||||
|
||||
func (t Task) FileName() string {
|
||||
|
||||
Reference in New Issue
Block a user