This is an updated Docker image for quickly launching Telegram Bot to interact with OpenRouter.
1.7K
Use a fork of openrouter-bot and image on Docker Hub, which implements Markdown formatting and simplifies the process of running in a container.
This is an updated Docker image for quickly launching Telegram Bot to interact with OpenRouter from Docker Hub. This method allows you to launch a telegram bot for free for personal and family use.
No need to copy the source repository to the host machine, fixed the error of missing configuration file, excluded storing variables in the image, support for amd64 and arm64 architectures and reduced the size of the final image.
mkdir openrouter-telegram-bot
cd openrouter-telegram-bot
nano .env
# OpenRouter api key from https://openrouter.ai/settings/keys
API_KEY=
# Free modeles: https://openrouter.ai/models?max_price=0
MODEL=deepseek/deepseek-r1:free
# Telegram api key from https://telegram.me/BotFather
TELEGRAM_BOT_TOKEN=
# Telegram id from https://t.me/getmyid_bot
ADMIN_IDS=
# List of users to access the bot, separated by commas
ALLOWED_USER_IDS=
# Disable guest access
GUEST_BUDGET=0
docker run -d --name OpenRouter-Telegram-Bot \
-v ./.env:/bot/.env \
--restart unless-stopped \
lifailon/openrouter-telegram-bot:latest
Or use docker-compose:
curl -sSL https://raw.githubusercontent.com/Lifailon/PS-Commands/refs/heads/rsa/Docker-Compose/openrouter-telegram-bot/docker-compose.yml -o docker-compose.yml
docker-compose up -d
You can build the image yourself (example, if you don't have access to Docker Hub):
curl -sSL https://raw.githubusercontent.com/Lifailon/PS-Commands/refs/heads/rsa/Docker-Compose/openrouter-telegram-bot/dockerfile -o dockerfile
docker-compose up -d --build
# or build for different architectures
docker buildx build --platform linux/amd64,linux/arm64 .
Content type
Image
Digest
sha256:cb9464c61…
Size
9.1 MB
Last updated
about 1 year ago
docker pull lifailon/openrouter-telegram-bot