Makes a bot send an audio message.
An audio file can be sent by using a URL or a file ID.
Note
- Whenever a file ID is used to send an audio message, the recipient's shared storage will be reduced by the size of the audio.
| Parameter | Type | Required | Description |
|---|---|---|---|
| type | string | Y | Set this parameter to "audio". |
| originalContentUrl | string | N | URL of the source file (HTTPS only). Maximum length: 1,000 characters Either originalContentUrl or fileId, but not both, must be specified (required). |
| fileId | string | N | File ID acquired when uploading content. Either originalContentUrl or fileId, but not both, must be specified (required). |
{ "content": { "type": "audio", "originalContentUrl": "https://www.worksmobile.com/audio.mp3" }}{ "content": { "type": "audio", "fileId": "jp1.1628695315008671000.1628781715.0.1000001.0.0.0" }}