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: