The standalone sender (hermes send, the send_message tool, standalone cron delivery) now
makes the gateway adapter's outbound decisions:
- rich_messages: true -> the adapter's own sendRichMessage gates and routing
(telegram_outbound.send_rich_standalone over the standalone Bot), so tables, task lists,
<details> and $$ math render natively; a transient rich failure is not resent as legacy.
- A rejected Bot API HTML chunk (an unsupported tag next to supported ones) retries as
MarkdownV2 before plain text, so its Markdown still renders.
- display.platforms.telegram.notifications applies to every standalone text/media send;
_send_to_platform(notify=) rings regardless, and cron's standalone lane passes
cron.delivery.notify so briefs ring in both lanes (#92929).
- Invisible-only text (zero-width, BOM, soft hyphen, bidi marks) is never delivered, in
both the adapter's send() and the standalone sender.
The notifications resolver moves from adapter.py into telegram_outbound.py and reads the
active profile's config.yaml through load_config_readonly(): it passed the GatewayConfig
dataclass to cfg_get, which only walks dicts, so the config.yaml key was always ignored
(regressed in 5600105478).
Fixes#74004, fixes#124413, fixes#145606, fixes#60848, fixes#131924, fixes#144895
Co-authored-by: Dean Chen <862469039@qq.com>
Co-authored-by: liuhao1024 <sunsky.lau@gmail.com>
Co-authored-by: Lavya Tandel <160998697+LavyaTandel@users.noreply.github.com>