Features: - Create and manage sticker packs - Add existing sticker sets to database - Automatic image optimization (512px, WebP conversion) - GIF to animated video sticker conversion (WebM, VP9) - Background removal (local rembg + optional Remove.bg API) - Hybrid API with retry logic and usage tracking - Premium status detection - SQLite database for persistence - Docker containerization - Complete OPENCODE.md documentation Technical Stack: - python-telegram-bot 22.7 - Pillow for image processing - FFmpeg for video conversion - rembg for local background removal - aiosqlite for async database operations
19 lines
395 B
YAML
19 lines
395 B
YAML
version: '3.8'
|
|
|
|
services:
|
|
stickerbot:
|
|
build: .
|
|
container_name: telegram-sticker-bot
|
|
restart: unless-stopped
|
|
env_file:
|
|
- .env
|
|
volumes:
|
|
- ./data:/app/data
|
|
- ./sticker_bot.db:/app/sticker_bot.db
|
|
environment:
|
|
- DATABASE_PATH=/app/data/sticker_bot.db
|
|
logging:
|
|
driver: "json-file"
|
|
options:
|
|
max-size: "10m"
|
|
max-file: "3" |