From 3d660cc4160c3b198c4f93f0c59a06667f2cfb2f Mon Sep 17 00:00:00 2001 From: Sergey Date: Sat, 16 May 2026 16:06:01 +0700 Subject: [PATCH] fix: debug telegram --- monitor.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/monitor.py b/monitor.py index e6768e7..e504324 100644 --- a/monitor.py +++ b/monitor.py @@ -54,8 +54,11 @@ async def send_telegram(message: str) -> None: async with httpx.AsyncClient(timeout=10) as client: try: resp = await client.post(url, data=payload) + log.info("Telegram response %s: %s", resp.status_code, resp.text) resp.raise_for_status() log.info("Telegram: сообщение отправлено") + except httpx.HTTPStatusError as exc: + log.error("Telegram: ошибка %s — %s", exc.response.status_code, exc.response.text) except Exception as exc: log.error("Telegram: ошибка отправки — %s", exc)