Modify answers
This commit is contained in:
parent
868b274917
commit
0e243087be
|
@ -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.")
|
||||
|
||||
|
|
Loading…
Reference in New Issue