Telegram Bot,自动下载 Twitter/X 视频 — 转发链接即下载,还能自动监控点赞并批量下载。
# docker-compose.yaml
services:
easy-twitter:
image: ch1swill/easy-twitter:latest
container_name: easy-twitter
restart: unless-stopped
environment:
BOT_TOKEN: "your_telegram_bot_token"
AUTO_LIKES_ENABLED: "false"
AUTO_LIKES_TARGET_USER: ""
AUTO_LIKES_POLL_INTERVAL: "300"
BOT_CLEANUP_MODE: "minimal"
volumes:
- ./data/downloads:/data/downloads
- ./data/logs:/data/logs
- ./data/state:/data/state
- ./secrets:/secrets
docker compose up -d
| Variable | Required | Default | Description |
|---|---|---|---|
BOT_TOKEN | ✅ | — | Telegram Bot API Token |
ALLOWED_USERS | ❌ | (all) | Comma-separated Telegram user IDs |
HTTP_PROXY | ❌ | — | HTTP/SOCKS5 proxy |
AUTO_LIKES_ENABLED | ❌ | false | Enable auto-likes monitoring |
AUTO_LIKES_TARGET_USER | ❌ | — | X username to monitor (no @) |
AUTO_LIKES_POLL_INTERVAL | ❌ | 300 | Poll interval in seconds |
BOT_CLEANUP_MODE | ❌ | minimal | minimal or delete |
AUTO_LIKES_MAX_PER_ROUND | ❌ | 20 | Max likes per poll round |
AUTO_LIKES_WORKERS | ❌ | 2 | Concurrent download workers |
AUTO_DISCOVER_REFRESH_HOURS | ❌ | 24 | GraphQL param refresh interval (hours) |
| Container Path | Description |
|---|---|
/data/downloads | 📥 Downloaded videos |
/data/logs | 📋 Application logs |
/data/state | 🗃️ SQLite database |
/secrets | 🍪 Cookies file (optional, for auto-likes) |
For auto-likes monitoring, export your X/Twitter cookies in Netscape format and mount as /secrets/cookies.txt.
Content type
Image
Digest
sha256:6a81d7aa2…
Size
225.2 MB
Last updated
6 months ago
docker pull ch1swill/easy-twitter