From 5a505fda663fa98ad621d20842f10ae4b2c01aee Mon Sep 17 00:00:00 2001 From: dnslin Date: Mon, 15 Dec 2025 17:46:14 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E5=A4=8D=E8=87=AA=E5=8A=A8?= =?UTF-8?q?=E4=B8=8A=E4=BC=A0=E9=9C=80=E8=A6=81=E7=82=B9=E5=87=BB=E6=9F=A5?= =?UTF-8?q?=E7=9C=8B=E8=AF=A6=E6=83=85=E6=89=8D=E8=83=BD=E8=A7=A6=E5=8F=91?= =?UTF-8?q?=E7=9A=84=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 --- src/telegram/handlers/download.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/telegram/handlers/download.py b/src/telegram/handlers/download.py index 0db93cf..cbd42f3 100644 --- a/src/telegram/handlers/download.py +++ b/src/telegram/handlers/download.py @@ -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}")