428th-website-2026/api/.env.example
Artemii Peretiachenko 793d093c86 Add Telegram contact API with JSONL backup and real form errors.
Wire the anonymous form to a VPS Python endpoint that notifies Telegram, persists submissions locally, and stops faking success on failure.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-07-26 18:43:43 +02:00

12 lines
355 B
Text

# Copy to api/.env on the VPS and fill in real values.
# Never commit .env.
TELEGRAM_BOT_TOKEN=1234567890:ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz
TELEGRAM_CHAT_ID=123456789
# Bind address (default: loopback only)
HOST=127.0.0.1
PORT=8787
# Local JSONL backup of submissions (relative to api/ or absolute path)
MESSAGES_FILE=messages.jsonl