Download
Download an attachment
client.messages.attachments.download(AttachmentDownloadParamsbody, RequestOptionsoptions?): AttachmentDownloadResponse
post/v0/download-attachment
Download an attachment from a message and return the local file path
Parameters
Returns
import BeeperDesktop from '@beeper/desktop-api';
const client = new BeeperDesktop({
accessToken: 'My Access Token',
});
const response = await client.messages.attachments.download({
chatID: '!NCdzlIaMjZUmvmvyHU:beeper.com',
messageID: 'messageID',
});
console.log(response.success);
{
"success": true,
"error": "error",
"filePath": "filePath"
}
Returns Examples
{
"success": true,
"error": "error",
"filePath": "filePath"
}