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>
This commit is contained in:
Danny 2026-03-30 14:12:50 +02:00
parent 7288d93741
commit ae09ab2eec
14 changed files with 1892 additions and 0 deletions

View file

@ -0,0 +1,14 @@
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")