Skip to content
  • Auto
  • Light
  • Dark
Download Beeper

Download Asset

Download an asset
download_asset(ClientDownloadAssetParams**kwargs) -> DownloadAssetResponse
post/v1/download-asset

Download a Matrix asset using its mxc:// or localmxc:// URL and return the local file URL.

ParametersExpand Collapse
url: str

Matrix content URL (mxc:// or localmxc://) for the asset to download.

minLength1
ReturnsExpand Collapse
class DownloadAssetResponse:
error: Optional[str]

Error message if the download failed.

src_url: Optional[str]

Local file URL to the downloaded asset.

Download an asset
from beeper_desktop_api import BeeperDesktop

client = BeeperDesktop(
    access_token="My Access Token",
)
response = client.download_asset(
    url="mxc://example.org/Q4x9CqGz1pB3Oa6XgJ",
)
print(response.error)
{
  "error": "error",
  "srcURL": "srcURL"
}
Returns Examples
{
  "error": "error",
  "srcURL": "srcURL"
}