Skip to content
Download Beeper

Serve an asset

assets.serve(AssetServeParams**kwargs)
GET/v1/assets/serve

Stream a file given an mxc://, localmxc://, or file:// URL. Downloads first if not cached. Supports Range requests for seeking in large files.

ParametersExpand Collapse
url: str

Asset URL to serve. Accepts mxc://, localmxc://, or file:// URLs.

minLength1

Serve an asset

from beeper_desktop_api import BeeperDesktop

client = BeeperDesktop()
client.assets.serve(
    url="x",
)
Returns Examples