Telegram bot to upload files directly to your Immich instance
1.3K
This Docker container provides a simple way to automatically upload files from Telegram to your Immich photo management system. It's perfect for:
✅ Automatic file uploads from Telegram to Immich ✅ Preserves original file metadata (for images) ✅ User restriction control (only allow specific Telegram user IDs) ✅ Simple configuration via environment variables
Set up your Telegram bot:
Configure your Immich instance:
Run the container and send a file! This image is available both on Docker Hub and GitHub Container Registry, so you're free to choose from which one you're going to download the image. Edit the following docker compose/docker run command to match your needs and you are ready to go!
version: '3'
services:
telegram-immich-bot:
image: ghcr.io/myanesp/telegram-immich-bot:latest # or myanesp/telegram-immich-bot
container_name: telegram-immich-bot
restart: unless-stopped
environment:
- TELEGRAM_BOT_TOKEN=your_telegram_bot_token
- IMMICH_API_URL=http://your-immich-instance/api
- IMMICH_API_KEY=your_immich_api_key
- ALLOWED_USER_IDS=user1_id,user2_id # Optional: restrict to specific users
docker run -d \
--name telegram-immich-bot \
--restart unless-stopped \
-e TELEGRAM_BOT_TOKEN=your_telegram_bot_token \
-e IMMICH_API_URL=http://your-immich-instance/api \
-e IMMICH_API_KEY=your_immich_api_key \
-e ALLOWED_USER_IDS=user1_id,user2_id \ # Optional
ghcr.io/myanesp/telegram-immich-bot:latest # or myanesp/telegram-immich-bot
| VARIABLE | MANDATORY | DESCRIPTION | DEFAULT |
|---|---|---|---|
| TELEGRAM_BOT_TOKEN | ✅ | Your Telegram bot token obtained from @BotFather | - |
| IMMICH_API_URL | ✅ | Full URL to your Immich API endpoint (can be local or public) (e.g., http://your-immich-instance:2283/api) | - |
| IMMICH_API_KEY | ✅ | API key for authenticating with your Immich instance | - |
| ALLOWED_USER_IDS | ❌ | Comma-separated list of Telegram user IDs allowed to use the bot (e.g., 123456789,987654321) | (empty - all users allowed) |
Content type
Image
Digest
sha256:a68a9101f…
Size
329.3 MB
Last updated
8 months ago
docker pull myanesp/telegram-immich-bot