Serve a file
assets.serve(AssetServeParams**kwargs) -> BinaryResponseContent
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.
Serve a file
import os
from beeper_desktop_api import BeeperDesktop
client = BeeperDesktop(
access_token=os.environ.get("BEEPER_ACCESS_TOKEN"), # This is the default and can be omitted
)
response = client.assets.serve(
url="x",
)
print(response)
content = response.read()
print(content)