Layer 220
method Users
messages.transcribeAudio#269e9a49 peer:InputPeer msg_id:int = messages.TranscribedAudio;

Parameters

Name Type Description
Peer InputPeer Peer ID where the voice message was sent
MsgId int Voice message ID

Possible Errors

Code Type Description
400 MSG_ID_INVALID Invalid message ID provided.
400 MSG_VOICE_MISSING The specified message is not a voice message.
400 PEER_ID_INVALID The provided peer id is invalid.
403 PREMIUM_ACCOUNT_REQUIRED A premium account is required to execute this action.
400 TRANSCRIPTION_FAILED Audio transcription failed.

Gogram Example

// MessagesTranscribeAudio - positional arguments
result, err := client.MessagesTranscribeAudio(&tg.InputPeerUser{UserID: int64(123456789)}, 0)
if err != nil {
    // handle error
}
// result is *tg.MessagesTranscribedAudio