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