From 08528510efa11b5493869876b269b4dade01c48b Mon Sep 17 00:00:00 2001 From: Raven95676 Date: Mon, 24 Mar 2025 10:41:33 +0800 Subject: [PATCH] Fix incorrect handling of reply messages within topics --- astrbot/core/platform/sources/telegram/tg_adapter.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/astrbot/core/platform/sources/telegram/tg_adapter.py b/astrbot/core/platform/sources/telegram/tg_adapter.py index 1b26e9ebe..b12478d5f 100644 --- a/astrbot/core/platform/sources/telegram/tg_adapter.py +++ b/astrbot/core/platform/sources/telegram/tg_adapter.py @@ -133,7 +133,11 @@ class TelegramPlatformAdapter(Platform): message.message_str = "" message.message = [] - if update.message.reply_to_message: + if update.message.reply_to_message and not ( + update.message.is_topic_message + and update.message.message_thread_id + == update.message.reply_to_message.message_id + ): # 获取回复消息 reply_update = Update( update_id=1,