fix(notify): switch Telegram parse_mode from Markdown to HTML
Underscores in alert text (dark_green, FIRE_BUY) broke Telegram's legacy Markdown parser, causing ok:false → retries exhausted → failed. HTML parse_mode is more robust and doesn't treat _ as italic. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
@@ -228,7 +228,7 @@ def test_telegram_send_ok() -> None:
|
||||
n = TelegramNotifier("token", "chat123", session=session)
|
||||
n.send(_alert("Hi"))
|
||||
assert len(session.calls) == 1
|
||||
assert "*Hi*" in session.calls[0]["json"]["text"]
|
||||
assert "<b>Hi</b>" in session.calls[0]["json"]["text"]
|
||||
|
||||
|
||||
def test_telegram_429_raises() -> None:
|
||||
|
||||
Reference in New Issue
Block a user