From 5b2332a8f735cf77371e2435e2157d30f76b6fad Mon Sep 17 00:00:00 2001 From: Antigravity Date: Sun, 10 May 2026 00:50:53 -0300 Subject: [PATCH] Fix Telegram Bridge not running inside container --- start.sh | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/start.sh b/start.sh index ec4a580..1674c55 100755 --- a/start.sh +++ b/start.sh @@ -4,8 +4,13 @@ if [ -d "/host_root" ]; then echo "Limpando processos conflitantes no HOST..." chroot /host_root /bin/bash -c "pkill -9 -f telegram_bot.js" || true chroot /host_root /bin/bash -c "pkill -9 -f bot_logic.py" || true + chroot /host_root /bin/bash -c "pkill -9 -f bridge_telegram.py" || true fi +# Inicia a ponte do Telegram em background +echo "Iniciando Telegram Bridge dentro do container..." +python3 bridge_telegram.py & + # Inicia o serviço web com log unbuffered echo "Iniciando Uvicorn na porta ${PORT:-8001}..." exec uvicorn main:app --host 0.0.0.0 --port ${PORT:-8001}