Send a voice memo to a chat
Send an uploaded audio Attachment as a voice memo.
Authorizations
Bearer token authentication. Include your API token in the Authorization header.
Format: Authorization: Bearer <your-token>
Path Parameters
Unique identifier of the chat
Body
- Option 1
- Option 2
Request to send a voice memo to a chat (chat_id provided in path).
Exactly one of voice_memo_url or attachment_id must be provided.
URL of the voice memo audio file. Must be a publicly accessible HTTPS URL.
Either voice_memo_url or attachment_id must be provided, but not both.
Reference to a voice memo file pre-uploaded via POST /v1/attachments.
The file is already stored, so sends using this ID skip the download step.
Either voice_memo_url or attachment_id must be provided, but not both.
Response
Voice memo accepted for delivery
Response for sending a voice memo to a chat

