fix: add error logging for send_thinking failures in email poller

This commit is contained in:
2026-07-15 19:02:59 +08:00
parent da1b266350
commit 687e60ede4
2 changed files with 4 additions and 2 deletions

View File

@@ -86,7 +86,7 @@ def poll_telegram(tg_cfg: TelegramConfig, cfg: Config, last_update_id: int) -> i
try:
resp = requests.get(
f"https://api.telegram.org/bot{tg_cfg.bot_token}/getUpdates",
params={"offset": last_update_id, "timeout": 5, "allowed_updates": ["callback_query", "message"]},
params={"offset": last_update_id, "timeout": 5},
timeout=15,
)
resp.raise_for_status()