refactor: Remove deprecated INTERNAL_API_PORT (ultrathin monolith cleanup)

Architecture cleanup after migration to ultrathin monolith:

- Remove INTERNAL_API_PORT from .env files (was port 8002)
- Clean up bot_main.py: remove uvicorn, Thread, run_internal_api()
- Update validate.md to check /api/telegram/health instead of port 8002
- Add deprecation notices to old Windows deployment docs
- Update docs/telegram/README.md with architecture note

The Telegram internal API is now served at /api/telegram/internal/*
on the main backend port (8000/8001) instead of separate port 8002.

Also includes: menu updates, ServerLogsView improvements, script fixes

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
2026-01-04 03:56:27 +02:00
parent 1e244eefea
commit f1f6760bef
16 changed files with 96 additions and 85 deletions

View File

@@ -401,9 +401,9 @@ else
exit 1
fi
# Telegram Bot health check
if check_port_available 8002; then
echo "✅ Telegram bot internal API is running on port 8002"
# Telegram Bot health check (now part of main backend on port 8000)
if curl -s http://localhost:8000/api/telegram/health > /dev/null 2>&1; then
echo "✅ Telegram bot is running (via main backend)"
else
echo "⚠️ Telegram bot is not running (optional for validation)"
fi