From 2d7b96dfd2f2992dc61a39bfaa1122f7a8722573 Mon Sep 17 00:00:00 2001 From: mirivlad Date: Tue, 24 Feb 2026 07:44:31 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=D0=BB=D0=BE=D0=B3=D0=B8=D1=80=D0=BE?= =?UTF-8?q?=D0=B2=D0=B0=D0=BD=D0=B8=D0=B5=20handle=5Ftext=5Fmessage?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: Qwen-Coder --- bot.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/bot.py b/bot.py index f421577..4061f09 100644 --- a/bot.py +++ b/bot.py @@ -1756,6 +1756,8 @@ async def handle_text_message(update: Update, context: ContextTypes.DEFAULT_TYPE user_id = update.effective_user.id text = update.message.text.strip() state = state_manager.get(user_id) + + logger.info(f"handle_text_message: user_id={user_id}, ai_chat_mode={state.ai_chat_mode}, text={text[:50]}") # Проверка: не в режиме ввода данных сервера ли мы if state.waiting_for_input: