From 1e4770ea1698a63a0b86f060e0bf093148137d5e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=94=D0=B5=D0=BD=D0=B8=D1=81=20=D0=9A=D1=80=D0=B8=D0=B2?= =?UTF-8?q?=D0=BE=D1=87=D0=B5=D0=BD=D0=BA=D0=BE?= Date: Thu, 30 Jul 2026 22:57:22 +0700 Subject: [PATCH] fix: use universal system_error_text instead of API/system errors in transcription --- transcription_bot/handlers.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/transcription_bot/handlers.py b/transcription_bot/handlers.py index d364f90..3038b3e 100644 --- a/transcription_bot/handlers.py +++ b/transcription_bot/handlers.py @@ -16,8 +16,7 @@ from utils.texts import ( transcription_error_bad_extension, TRANSCRIPTION_UPLOADING_TEXT, transcription_success_received, - transcription_error_api, - transcription_error_system, + system_error_text, UNKNOWN_MAIN_CMD_TEXT, ) @@ -115,12 +114,13 @@ async def transcription_handler(msg: Message): log_menu_stats(user_id, "Speech-to-Text", f"Отправка встречи на расшифровку ({ext})") await msg.answer(transcription_success_received(user_email), parse_mode="html") else: - await msg.answer(transcription_error_api(response.status_code), parse_mode="html") + await msg.answer(system_error_text(EMOJI_DIGITS), parse_mode="html") except Exception as e: logger.error(f"Transcription Upload Error: {e}") - await msg.answer(transcription_error_system(), parse_mode="html") + await msg.answer(system_error_text(EMOJI_DIGITS), parse_mode="html") return # --- ЗАГЛУШКА НА НЕИЗВЕСТНЫЙ ТЕКСТ / СТАНДАРТНАЯ ОШИБКА ВВОДА --- await msg.answer(UNKNOWN_MAIN_CMD_TEXT, parse_mode="html") +