Skip to content

Commit

Permalink
Pyrofork: Fix transcribed_audio method
Browse files Browse the repository at this point in the history
Signed-off-by: Yasir Aris M <[email protected]>
  • Loading branch information
yasirarism authored Feb 3, 2025
1 parent 5c1c72f commit ad0aed4
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions pyrogram/types/messages_and_media/transcribed_audio.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,10 @@
# along with Pyrofork. If not, see <http://www.gnu.org/licenses/>.

from pyrogram import raw
from ..object import Object


class TranscribedAudio:
class TranscribedAudio(Object):
"""Transcribes the audio of a voice message.
Parameters:
Expand Down Expand Up @@ -58,7 +59,7 @@ def __init__(
@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,
Expand Down

0 comments on commit ad0aed4

Please sign in to comment.