mirror of
https://github.com/anten-ka/go_warp_pro.git
synced 2026-05-19 20:26:00 +00:00
Fix: bot daemon re-reads config each poll cycle so new admins work without restart
Made-with: Cursor
This commit is contained in:
1
warp.sh
1
warp.sh
@@ -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)
|
||||||
|
|||||||
Reference in New Issue
Block a user