A Telegram bot that automatically uploads images to Cloudflare R2 storage and returns public URLs.
- Accepts images sent as photos or documents
- Uploads files to Cloudflare R2
- Returns public URLs for uploaded files
- Owner-only access control
TELEGRAM_BOT_TOKEN
: Your Telegram bot token from BotFatherOWNER_ID
: Telegram user ID of the bot owner, you can get own from @myidbotCF_ACCOUNT_ID
: Cloudflare account IDCF_ACCESS_KEY_ID
: Cloudflare R2 access key IDCF_ACCESS_KEY_SECRET
: Cloudflare R2 access key secretCF_BUCKET_NAME
: Name of your R2 bucketCF_CUSTOM_DOMAIN
: Your custom domain for R2 bucket (optional)
docker build -t telegram-r2-bot .