fix: логирование handle_text_message

Co-authored-by: Qwen-Coder <qwen-coder@alibabacloud.com>
This commit is contained in:
mirivlad 2026-02-24 07:44:31 +08:00
parent a645327006
commit 2d7b96dfd2
1 changed files with 2 additions and 0 deletions

2
bot.py
View File

@ -1757,6 +1757,8 @@ async def handle_text_message(update: Update, context: ContextTypes.DEFAULT_TYPE
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:
await handle_server_input(update, text)