telegram api method · layer 229 · #269e9a49
messages.transcribeAudio
Transcribe voice message
definition
messages.transcribeAudio#269e9a49 peer:InputPeer msg_id:int = messages.TranscribedAudio;
parameters
| name | type | description |
|---|---|---|
peer | InputPeer | Peer ID where the voice message was sent |
msg_id | int | Voice message ID |
returns
errors (8)
| code | error | description |
|---|---|---|
| 400 | BUSINESS_CONNECTION_NOT_ALLOWED | This method was invoked over a business connection using invokeWithBusinessConnection, but either (1) we're a user, and users cannot invoke methods over a business connection; (2) we're a bot, but business mode was disabled in @botfather or (3); we're a bot, but this method cannot be invoked over a business connection. |
| 400 | MSG_ID_INVALID | Invalid message ID provided. |
| 400 | MSG_VOICE_MISSING | The specified message is not a voice message. |
| 400 | MSG_VOICE_TOO_LONG | The specified voice message is too long to be transcribed. |
| 400 | PEER_ID_INVALID | The provided peer id is invalid. |
| 400 | TRANSCRIPTION_FAILED | Audio transcription failed. |
| 401 | AUTH_KEY_UNREGISTERED | The specified authorization key is not registered in the system (for example, a PFS temporary key has expired). |
| 403 | PREMIUM_ACCOUNT_REQUIRED | A premium account is required to execute this action. |
history
present in layers 143–229
| id | layers |
|---|---|
| #269e9a49 | 143–229 |