mirror of
https://github.com/Mayuri-Chan/pyrofork.git
synced 2026-01-03 14:04:51 +00:00
Pyrofork: Fix transcribed_audio method
Signed-off-by: Yasir Aris M <git@yasirdev.my.id>
This commit is contained in:
parent
5c1c72f068
commit
ad0aed4cf3
1 changed files with 3 additions and 2 deletions
|
|
@ -18,9 +18,10 @@
|
||||||
# along with Pyrofork. If not, see <http://www.gnu.org/licenses/>.
|
# along with Pyrofork. If not, see <http://www.gnu.org/licenses/>.
|
||||||
|
|
||||||
from pyrogram import raw
|
from pyrogram import raw
|
||||||
|
from ..object import Object
|
||||||
|
|
||||||
|
|
||||||
class TranscribedAudio:
|
class TranscribedAudio(Object):
|
||||||
"""Transcribes the audio of a voice message.
|
"""Transcribes the audio of a voice message.
|
||||||
|
|
||||||
Parameters:
|
Parameters:
|
||||||
|
|
@ -58,7 +59,7 @@ class TranscribedAudio:
|
||||||
@staticmethod
|
@staticmethod
|
||||||
def _parse(transcribe_result: "raw.types.messages.TranscribedAudio") -> "TranscribeAudio":
|
def _parse(transcribe_result: "raw.types.messages.TranscribedAudio") -> "TranscribeAudio":
|
||||||
return TranscribedAudio(
|
return TranscribedAudio(
|
||||||
transcription_id=transcribe_result.id,
|
transcription_id=transcribe_result.transcription_id,
|
||||||
text=transcribe_result.text,
|
text=transcribe_result.text,
|
||||||
pending=transcribe_result.pending,
|
pending=transcribe_result.pending,
|
||||||
trial_remains_num=transcribe_result.trial_remains_num,
|
trial_remains_num=transcribe_result.trial_remains_num,
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue