Fix: bot daemon re-reads config each poll cycle so new admins work without restart

Made-with: Cursor
This commit is contained in:
anten-ka
2026-03-22 14:38:08 +03:00
parent 53069905f2
commit dde0152786

View File

@@ -1615,6 +1615,7 @@ bot_daemon() {
} }
bot_poll_cycle() { bot_poll_cycle() {
source "$WARP_CONF" 2>/dev/null
local response local response
response=$(curl -s --max-time 35 \ response=$(curl -s --max-time 35 \
"https://api.telegram.org/bot${BOT_TOKEN}/getUpdates?offset=${offset}&timeout=30" 2>/dev/null) "https://api.telegram.org/bot${BOT_TOKEN}/getUpdates?offset=${offset}&timeout=30" 2>/dev/null)