fix: убран префикс 'голосовой' — Claude путался и отвечал про голос

Транскрибированный текст отправляется as-is, без пометок.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
anor
2026-03-30 17:52:51 +10:00
co-authored by Claude Opus 4.6
parent 80788d72d4
commit 35e04a2f0c
-3
View File
@@ -359,9 +359,6 @@ async def voice_message(update: Update, context: ContextTypes.DEFAULT_TYPE):
logger.info(f"Voice transcription for user {user_id}: {text[:200]}")
await wait_msg.edit_text(f"🤔 «{text[:100]}{'...' if len(text) > 100 else ''}»\nДумаю...")
# Prefix so Claude knows this is a transcribed voice question
text = f"[Голосовой вопрос пользователя]: {text}"
except Exception as e:
logger.error(f"Voice transcription error: {e}")
await wait_msg.edit_text(f"Ошибка распознавания: {e}")