mirror of
https://github.com/NousResearch/hermes-agent.git
synced 2026-04-25 00:51:20 +00:00
When Telegram's MarkdownV2 parser rejects a message, the send() fallback was sending the already-escaped text as plain text. This caused users to see raw backslashes before every special character (periods, dashes, parentheses, etc.) — e.g. 'sentence\.' or '\-\-auto\-approve'. Changes: - Add _strip_mdv2() to reverse MarkdownV2 escaping for clean plaintext - Use stripped text in the send() fallback path instead of raw escaped chunk - Add logging when the MDV2 fallback is triggered for diagnostics - Add logger to telegram.py (was missing) The edit_message() fallback already correctly used the original content; this brings send() in line with that behavior. |
||
|---|---|---|
| .. | ||
| __init__.py | ||
| base.py | ||
| discord.py | ||
| homeassistant.py | ||
| slack.py | ||
| telegram.py | ||
| whatsapp.py | ||