From 0e243087be5aaab13d79770368d9920c9305d18f Mon Sep 17 00:00:00 2001 From: itqop Date: Sun, 23 Feb 2025 20:22:09 +0300 Subject: [PATCH] Modify answers --- telegram_bot/handlers/audio_handler.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/telegram_bot/handlers/audio_handler.py b/telegram_bot/handlers/audio_handler.py index b692ed5..c32e4ae 100644 --- a/telegram_bot/handlers/audio_handler.py +++ b/telegram_bot/handlers/audio_handler.py @@ -43,7 +43,7 @@ async def handle_voice_and_video(message: types.Message, redis_service, storage_ } await redis_service.publish_task(task_data) - await message.reply("Your message has been received, converted to WAV, and queued for processing.\nWaiting for transcription...") + await message.reply("Waiting for transcription...") text = await redis_service.wait_for_text( user_id=message.from_user.id, @@ -51,7 +51,7 @@ async def handle_voice_and_video(message: types.Message, redis_service, storage_ message_id=message.message_id ) if text: - await message.reply(f"Transcription result:\n{text}") + await message.reply(f"{text}") else: await message.reply("Sorry, transcription result was not received within the timeout.")