18 lines
777 B
Markdown
18 lines
777 B
Markdown
# Telegram Bot Token Fix
|
|
|
|
## Problem
|
|
Docker container was showing "⚠️ TELEGRAM_BOT_TOKEN not found or invalid - bot will not start" error despite the token being present in `.env.docker` file.
|
|
|
|
## Root Cause
|
|
The `docker-compose.yml` file was missing the `env_file` configuration to load environment variables from `.env.docker`.
|
|
|
|
## Solution
|
|
Added `env_file: - .env.docker` at the top level of docker-compose.yml to ensure all services load environment variables from the .env.docker file.
|
|
|
|
## Files Modified
|
|
- `docker-compose.yml`: Added env_file configuration
|
|
|
|
## Token Details
|
|
- Token is present in `.env.docker`: `8262100335:AAFUBycadhKwV4oWPtF_Uq3c_R95SfWUElM`
|
|
- WEB_APP_URL is configured: `https://quixy.uk`
|
|
- Environment variables are properly referenced in services |