TgCloud Logo

Host Images for $0 Forever

Unlimited image hosting using Telegram as your CDN backend. No AWS bills. No bandwidth limits. Just pure Go magic.

Try Live Demo
$0
Cost Forever
Storage
20MB
Max File Size

How The Magic Works

📤

1. Upload

POST your image via file or URL. We stream it to your private Telegram channel via Bot API.

🔑

2. Store

Telegram returns a permanent File ID. We keep it in SQLite. Your image is now in Telegram's cloud (2GB per channel).

3. Serve

Request /img/{id} → We fetch from Telegram's CDN and proxy it to your users. Hotlink-friendly.

Try It Live

Upload an image and see the magic happen instantly

📁

Drop image here or click to browse

Supports JPG, PNG, GIF, WebP (max 20MB)

API Reference

POST /post-from-file
curl -X POST -F "file=@photo.jpg" \
  https://tgcloud.alwaysdata.net/post-from-file
POST /post-from-url
curl -X POST \
  -H "Content-Type: application/json" \
  -d '{"url":"https://example.com/img.png"}' \
  https://tgcloud.alwaysdata.net/post-from-url
Response
{
  "status": 200,
  "message": "Image uploaded successfully. Keep this ID safe.",
  "id": "AgACAgQAAxkDAAMraZyUGni2...",
}

Why TgCloud Wins

Feature TgCloud AWS S3 Free Imgur API
Cost $0 Forever $0 (12mo) Rate Limited
Storage Cap Unlimited* 5GB Unlimited
Hotlinking ✅ Yes ✅ Yes ❌ No
Privacy Self-hosted AWS sees all Public by default
*2GB per channel, create unlimited channels

Ready to Deploy?

One click to your own unlimited image host

Quick Install
git clone https://github.com/AdrienMttn/TgCloud.git
cd TgCloud
echo "BOT_TOKEN=your_token" > .env
echo "CHAT_ID=your_chat_id" >> .env
go mod tidy && go run main.go