docs: async def download_file(self, url: str) -> bytes:
          """
          Download a file from the content repository. See also: `API reference`_
  
          Args:
              url: The MXC URI to download.
  
          Returns:
              The raw downloaded data.
  
          .. _API reference:
             https://matrix.org/docs/spec/client_server/r0.3.0.html#get-matrix-media-r0-download-servername-mediaid
          """
          await self.ensure_registered()
          url = self.client.get_download_url(url)
          async with self.client.session.get(url) as response:
              return await response.read()