mirror of
https://github.com/krau/SaveAny-Bot.git
synced 2026-07-07 23:21:23 +08:00
refactor: remove message editing after photo file download in task processing
This commit is contained in:
@@ -55,10 +55,6 @@ func processPendingTask(task *types.Task) error {
|
|||||||
defer cleanCacheFile(destPath)
|
defer cleanCacheFile(destPath)
|
||||||
|
|
||||||
logger.L.Infof("Downloaded file: %s", destPath)
|
logger.L.Infof("Downloaded file: %s", destPath)
|
||||||
ctx.EditMessage(task.ChatID, &tg.MessagesEditMessageRequest{
|
|
||||||
Message: fmt.Sprintf("下载完成: %s\n正在转存文件...", task.FileName()),
|
|
||||||
ID: task.ReplyMessageID,
|
|
||||||
})
|
|
||||||
|
|
||||||
return saveFileWithRetry(task, destPath)
|
return saveFileWithRetry(task, destPath)
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user