messages.TranscribedAudio

class pyrogram.raw.types.messages.TranscribedAudio

Transcribed text from a voice message »

Constructor of TranscribedAudio.

Details:
  • Layer: 223

  • ID: CFB9D957

Parameters:
  • transcription_id (int 64-bit) – Transcription ID

  • text (str) – Transcripted text

  • pending (bool, optional) – Whether the transcription is partial because audio transcription is still in progress, if set the user may receive further updateTranscribedAudio updates with the updated transcription.

  • trial_remains_num (int 32-bit, optional) – For non-Premium users, this flag will be set, indicating the remaining transcriptions in the free trial period.

  • trial_remains_until_date (int 32-bit, optional) – For non-Premium users, this flag will be set, indicating the date when the trial_remains_num counter will be reset to the maximum value of transcribe_audio_trial_weekly_number.

Functions:

This object can be returned by 1 function.

messages.TranscribeAudio

Transcribe voice message

TL Schema

messages.transcribedAudio#cfb9d957
flags:#
pending:flags.0?true
transcription_id:long
text:string
trial_remains_num:flags.1?int
trial_remains_until_date:flags.1?int

= messages.TranscribedAudio

Parameter Tree

TranscribedAudio
├── pendingtrue (optional)
├── transcription_idlong
├── textstring
├── trial_remains_numint (optional)
└── trial_remains_until_dateint (optional)

Example

TranscribedAudio(
    transcription_id=0,
    text="Open",
)