mirror of
https://github.com/dnslin/aria2bot.git
synced 2026-01-11 04:02:20 +08:00
fix: 修复自动上传需要点击查看详情才能触发的问题
🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
@@ -199,8 +199,8 @@ class DownloadHandlersMixin:
|
||||
text = f"✅ *下载完成*\n📄 {safe_name}\n📦 大小: {task.size_str}\n🆔 GID: `{task.gid}`"
|
||||
try:
|
||||
await _bot_instance.send_message(chat_id=chat_id, text=text, parse_mode="Markdown")
|
||||
# 注意:自动上传已在 _auto_refresh_task 中通过 _coordinated_auto_upload 处理
|
||||
# 这里不再单独触发,避免重复上传
|
||||
# 触发自动上传(如果配置了的话)
|
||||
await self._coordinated_auto_upload(chat_id, task.gid, task, _bot_instance)
|
||||
except Exception as e:
|
||||
logger.warning(f"发送完成通知失败 (GID={task.gid}): {e}")
|
||||
|
||||
|
||||
Reference in New Issue
Block a user