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") +