This commit is contained in:
Rogee
2024-09-02 18:57:42 +08:00
parent 32b53c0b18
commit 6d0f4e888a
2 changed files with 2 additions and 2 deletions

2
.vscode/launch.json vendored
View File

@@ -14,7 +14,7 @@
"export",
"--alias",
"yunpanshare",
"--history",
// "--history",
]
}
]

View File

@@ -30,7 +30,7 @@ func (t *TClient) Channel(ctx context.Context, channel *tg.Channel, cfg *DBChann
}
if len(messages.(*tg.MessagesChannelMessages).GetMessages()) == 0 {
t.logger.Info("no new message")
return nil
return errors.New("no new message")
}
downloader := downloader.NewDownloader()