I built TgCloud: An open‑source image hosting & CDN powered by Telegram storage
Описание и применение
TgCloud – это бесплатный сервис хранения изображений, использующий Telegram как бекенд. Он позволяет загружать изображения через API, URL или UI, а затем проксировать их с Telegram CDN, избавляя от затрат на облачные хранилища.
Задача
Avoid costly AWS S3 bills and rate‑limited public APIs for basic image storage.
Результат
TgCloud provides a zero‑cost, hotlink‑friendly image hosting service using Telegram’s unlimited storage, suitable for personal portfolios and small side projects.
Рабочий процесс
- Clone the TgCloud repo
- Create a .env file with BOT_TOKEN, CHAT_ID, and PORT
- Run the binary (go run main.go)
- Upload images via API, remote URL, or drag‑and‑drop UI
- TgCloud streams the image to a Telegram channel and receives a File ID
- TgCloud proxies the image from Telegram’s CDN to the requester via https://your‑vps.com/img/{id}
Доказательства
I built TgCloud. It requires absolutely no database.
Upload: You POST your image (file or remote URL) to the TgCloud binary.
Stream & Store: TgCloud securely streams it to your private Telegram channel using the native Telegram Bot API.
Proxy & Serve: When someone requests https://your-vps.com/img/{id}, TgCloud fetches the raw data from Telegram's CDN and proxies it directly back to the user.
Rate Limits: Telegram limits Bot API traffic to roughly ~30 requests per minute.
- Дата записи: 2026-11-01T22:28:44.617Z