TeleCloud Drive
Next.js 14+ • Telegram Engine • Supabase RLS

Unlimited Cloud Storage Powered by Telegram Bot API

Turn your private Telegram channel into a high-speed, secure, unlimited cloud drive. Fast streaming downloads, strict Supabase Row Level Security, and zero cloud storage bills.

Launch TeleCloud Drive

Full-Stack Architecture Highlights

Engineered according to modern Next.js 14 App Router standards.

Telegram Storage Engine

Files are streamed to your private Telegram channel using the Bot API (`sendDocument`). Supports files up to 2GB each with unlimited total capacity.

sendDocument + getFile

Supabase PostgreSQL + RLS

User authentication and metadata are protected by strict Row Level Security (RLS) policies. Only the authenticated owner can view, download, or delete their files.

auth.uid() = user_id

Binary Stream Engine

Direct streaming downloads via Route Handlers. The server streams binary chunks straight to the browser with correct MIME headers and zero RAM bottlenecks.

Next.js Route Handlers

របៀបរៀបចំនិងដាក់ឱ្យដំណើរការ (Setup Guide)

អនុវត្តតាម ៣ ជំហានងាយៗខាងក្រោមដើម្បីភ្ជាប់ Telegram Bot និង Supabase

1

បង្កើត Telegram Bot & Private Channel

ឆាតទៅ @BotFather វាយពាក្យ /newbot ដើម្បីយក TELEGRAM_BOT_TOKEN។ បង្កើត Private Channel ថ្មីមួយ រួច Add Bot ចូលជា Admin (បើកសិទ្ធិ Post Messages & Delete Messages) ហើយយក TELEGRAM_CHAT_ID (ឧទាហរណ៍៖ -100xxxxxxxxxx)។

2

បង្កើត Project ក្នុង Supabase & Run SQL

បង្កើត Project លើ supabase.com រួចចូលទៅកាន់ SQL Editor ហើយចុចប៊ូតុង "SQL Schema" ខាងលើដើម្បី Copy កូដយកទៅ Run។ បន្ទាប់មកចម្លងយក URL, Anon Key, និង Service Role Key ពី Project Settings > API។

3

បញ្ចូល Environment Variables & Deploy

បញ្ចូល keys ទាំង ៥ ចូលក្នុង .env.local ឬបញ្ចូលទៅក្នុង Vercel Project Settings > Environment Variables នៅពេល Deploy។