Tipos de mensaje
Audio
Envía un archivo de audio
POST
Formatos y Límites de Tamaño
| Tipo de Medio | Formatos Soportados | Límite de Tamaño |
|---|---|---|
| Audio | audio/aac, audio/mp4, audio/mpeg, audio/amr, audio/ogg (solo codec opus) | 16MB |
Requisitos de URL
Errores Comunes
INVALID_MEDIA_URL- La URL del audio es inválida o inaccesibleMEDIA_TOO_LARGE- El archivo de audio excede el límite de 16MBUNSUPPORTED_MEDIA_TYPE- El formato de audio no es soportado
Casos de Uso
- Enviar mensajes de voz
- Compartir música o podcasts
- Enviar notificaciones de audio
- Compartir grabaciones
Autorizaciones
Basic authentication using Base64 encoded clientId:clientSecret
Parámetros de ruta
The unique identifier of the bot
Cuerpo
application/json
Message payload. The structure varies based on the message type.
- Option 1
- Option 2
- Option 3
- Option 4
- Option 5
- Option 6
- Option 7
- Option 8
- Option 9
- Option 10
- Option 11
- Option 12
- Option 13
- Option 14
Type of message to send
Opciones disponibles:
text Ejemplo:
"text"
Unique identifier of the user receiving the message
Ejemplo:
"USER_ID"
Text content of the message
Ejemplo:
"Hello, this is a text message"
Unique identifier of the bot sending the message
Ejemplo:
"BOT_ID"