From ad0aed4cf3e6206dbbbe404d4e7d37365f3caeda Mon Sep 17 00:00:00 2001 From: Yasir Aris M Date: Mon, 3 Feb 2025 12:11:36 +0700 Subject: [PATCH] Pyrofork: Fix transcribed_audio method Signed-off-by: Yasir Aris M --- pyrogram/types/messages_and_media/transcribed_audio.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/pyrogram/types/messages_and_media/transcribed_audio.py b/pyrogram/types/messages_and_media/transcribed_audio.py index c85d0b62..0351ff1a 100644 --- a/pyrogram/types/messages_and_media/transcribed_audio.py +++ b/pyrogram/types/messages_and_media/transcribed_audio.py @@ -18,9 +18,10 @@ # along with Pyrofork. If not, see . from pyrogram import raw +from ..object import Object -class TranscribedAudio: +class TranscribedAudio(Object): """Transcribes the audio of a voice message. Parameters: @@ -58,7 +59,7 @@ class TranscribedAudio: @staticmethod def _parse(transcribe_result: "raw.types.messages.TranscribedAudio") -> "TranscribeAudio": return TranscribedAudio( - transcription_id=transcribe_result.id, + transcription_id=transcribe_result.transcription_id, text=transcribe_result.text, pending=transcribe_result.pending, trial_remains_num=transcribe_result.trial_remains_num,