BrowserUse_and_ComputerUse_.../gateway/platforms
quabug 50d6659392 fix: handle MEDIA tags in send_message tool for native file delivery
The send_message tool's _send_telegram() sent MEDIA:<path> tags as
literal text instead of delivering actual files. This fixes it by
extracting MEDIA tags via BasePlatformAdapter.extract_media() and
routing files to the appropriate Telegram Bot API method by extension.

Changes:
- send_message_tool: extract MEDIA tags and send files natively as
  photo/video/voice/audio/document based on file extension
- send_message_tool: add per-file error handling and missing-file logging
- send_message_tool: use cleaned text in fallback to avoid leaking tags
- base.py extract_media: handle optional space after MEDIA: colon
- base.py extract_media: strip surrounding backticks/quotes from paths

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-14 04:02:03 -07:00
..
__init__.py Enhance CLI with multi-platform messaging integration and configuration management 2026-02-02 19:01:51 -08:00
ADDING_A_PLATFORM.md docs: add platform integration checklist for new gateway adapters 2026-03-08 21:20:06 -07:00
base.py fix: handle MEDIA tags in send_message tool for native file delivery 2026-03-14 04:02:03 -07:00
discord.py refactor: salvage adapter and CLI cleanup from PR #939 2026-03-14 03:07:11 -07:00
email.py feat: add email gateway platform (IMAP/SMTP) 2026-03-11 06:32:01 -07:00
homeassistant.py fix: Home Assistant event filtering now closed by default (#1169) 2026-03-13 07:40:38 -07:00
signal.py fix(signal): align send() signature with base class (content, reply_to, metadata) 2026-03-10 15:18:26 -07:00
slack.py refactor: salvage adapter and CLI cleanup from PR #939 2026-03-14 03:07:11 -07:00
telegram.py feat(gateway): add reasoning hot reload 2026-03-14 02:42:47 -07:00
whatsapp.py fix(cli): respect HERMES_HOME in all remaining hardcoded ~/.hermes paths 2026-03-13 21:32:53 -07:00