fix(telegram): aggressive polling to win session from competing instances
All checks were successful
E2E Health Check / e2e-health (push) Successful in 16s

This commit is contained in:
OG T
2026-03-31 15:53:26 +08:00
parent 3260c565ef
commit a0c3a3bc8a

View File

@@ -2233,8 +2233,8 @@ class TelegramGateway:
status=409,
message="409 衝突,等待殘留 session 過期...",
)
# 等待 LONG_POLLING_TIMEOUT 讓舊 session 自然過期
await asyncio.sleep(LONG_POLLING_TIMEOUT + 5)
# 2026-03-31 ogt: 侵略性搶佔模式 - 縮短等待以從 .188 手中奪回主權
await asyncio.sleep(2)
else:
logger.error("telegram_polling_http_error", status=e.response.status_code)
await asyncio.sleep(LONG_POLLING_RETRY_DELAY)