From 9b2cb88b7913d9c72e63ea681f703955d3c3d2cd Mon Sep 17 00:00:00 2001 From: Claude Date: Sat, 7 Mar 2026 14:44:58 +0000 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E5=A4=8D=20/sb=20=E7=BF=BB?= =?UTF-8?q?=E9=A1=B5=E6=8C=89=E9=92=AE=E7=82=B9=E5=87=BB=E5=90=8E=E6=B6=88?= =?UTF-8?q?=E6=81=AF=E4=B8=8D=E6=9B=B4=E6=96=B0=E7=9A=84=20Bug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 翻页处理逻辑在计算新页内容后缺少 edit_text 调用,导致点击 ⬆️/⬇️ 按钮无任何反应。添加 edit_text 并 return 修复该问题。 https://claude.ai/code/session_01HNCfZLiNXHZcchtifn6b5T --- module/torrent_search/torrent_search.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/module/torrent_search/torrent_search.py b/module/torrent_search/torrent_search.py index ed88881..60f09a4 100644 --- a/module/torrent_search/torrent_search.py +++ b/module/torrent_search/torrent_search.py @@ -342,9 +342,13 @@ async def torrent_callback(update: Update, context: ContextTypes.DEFAULT_TYPE): if data == "torrent_next": page.next_page() text, buttons = page.now_page_text() + await msg.edit_text(text=text, reply_markup=InlineKeyboardMarkup(buttons)) + return elif data == "torrent_previous": page.previous_page() text, buttons = page.now_page_text() + await msg.edit_text(text=text, reply_markup=InlineKeyboardMarkup(buttons)) + return elif data.startswith("torrent_magnet_"): try: index = int(data.split("_")[-1])