bigbiggerbiggestbot/telegram-fitness-bot/config.py
Danny ae09ab2eec feat(tg-fitness-bot): add telegram fitness bot with web app
Telegram workout tracker bot with Mini App web UI, SQLite database,
API server, and cloudflared tunnel support.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-04-07 22:46:10 +02:00

14 lines
502 B
Python

import os
# Telegram Bot Token — loaded from .env automatically by start.py
BOT_TOKEN = os.environ.get("BOT_TOKEN", "")
# Public HTTPS URL — set automatically by start.py via localtunnel
WEBAPP_URL = os.environ.get("WEBAPP_URL", "http://localhost:8080")
# API server settings
API_HOST = os.environ.get("API_HOST", "0.0.0.0")
API_PORT = int(os.environ.get("API_PORT", "8080"))
# Database path — defaults to fitness.db in the working directory
DB_PATH = os.environ.get("DB_PATH", "fitness.db")