Telebase Docs

File Downloads

Stream securely encrypted files directly into the browser.

Direct URL Streaming

You can use the endpoint /api/data/[uuid] directly in your HTML tags like <img>, <video>, or generic anchor tags. The backend fetches the chunks, decrypts them, recompresses, and streams them on the fly.

// Using inside an Image tag
<img 
  src="https://telebase.pages.dev/api/data/YOUR_FILE_UUID?apiKey=YOUR_KEY" 
  alt="Encrypted Telegram Media"
/>

// Using for direct download
<a 
  href="https://telebase.pages.dev/api/data/YOUR_FILE_UUID?apiKey=YOUR_KEY&download=true"
>
  Download Secure File
</a>