Commit Graph

2 Commits

Author SHA1 Message Date
ehushubhamshaw
7a70c34e57 fix(build): resolve broken merge; restore main + re-apply hardware
Pre-Aardvark Section 1 (Build Health): PASS

Restore all src/ from origin/main; re-apply BHA hardware module.
Wire hardware::boot() and merge_hardware_tools() into loop_.rs.
Fix unused_imports in hardware/mod.rs.

Results: cargo build --features hardware EXIT:0, tests 4477 pass.
2026-03-02 21:27:53 -05:00
s04
3a4215aa78 fix(telegram): fall back to text link when media-by-URL fails
When the Telegram Bot API rejects a sendDocument/sendPhoto/etc by URL
(e.g. "wrong type of the web page content" or "failed to get HTTP URL
content"), the entire reply was lost because the error propagated
immediately via `?` with no fallback.

Now when any send-media-by-URL call fails, the channel logs a warning
and falls back to sending the URL as a plain text link. This ensures
the user always receives the agent's response, even when Telegram
can't fetch the linked content.

Also makes `api_base` configurable via `with_api_base()` for local
Bot API server support and testability.
2026-02-21 12:34:33 +08:00