telegram api method · layer 229 · #269e9a49

messages.transcribeAudio

usable by users

Transcribe voice message

definition

messages.transcribeAudio#269e9a49 peer:InputPeer msg_id:int = messages.TranscribedAudio;

parameters

nametypedescription
peerInputPeerPeer ID where the voice message was sent
msg_idintVoice message ID

returns

messages.TranscribedAudio

errors (8)

codeerrordescription
400BUSINESS_CONNECTION_NOT_ALLOWEDThis 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.
400MSG_ID_INVALIDInvalid message ID provided.
400MSG_VOICE_MISSINGThe specified message is not a voice message.
400MSG_VOICE_TOO_LONGThe specified voice message is too long to be transcribed.
400PEER_ID_INVALIDThe provided peer id is invalid.
400TRANSCRIPTION_FAILEDAudio transcription failed.
401AUTH_KEY_UNREGISTEREDThe specified authorization key is not registered in the system (for example, a PFS temporary key has expired).
403PREMIUM_ACCOUNT_REQUIREDA premium account is required to execute this action.

history

present in layers 143–229

idlayers
#269e9a49143–229