hermes-agent/gateway/platforms
Teknium c6f4515f73
fix(whatsapp): download documents, audio, and video media from messages (#2978)
Add downloadMediaMessage() calls for documents, audio/voice notes, and
video in bridge.js — previously only images were downloaded, leaving all
other file types inaccessible to the agent.

Handle local file paths from the bridge for DOCUMENT, VOICE, and VIDEO
types in whatsapp.py with proper MIME detection. Inject text content
inline for readable files (.txt, .md, .csv, .json, etc.).

Follow-up fixes applied during salvage:
- Remove unused cache_document_from_bytes import
- Add 100KB size cap on text injection (matches Telegram/Discord/Slack)
- Align injection format with other platforms

Cherry-picked from PR #2818. Also fixes #2856 (bugs 1 & 2).
PR #2865 by ayberkesn fixed the same voice note issue.

Co-authored-by: noestelar <hola@noeali.com>
2026-03-25 08:37:28 -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: finish cron terminology cleanup 2026-03-14 19:20:58 -07:00
api_server.py feat(api-server): Idempotency-Key support, body size limit, OpenAI error envelope (#2903) 2026-03-24 19:31:08 -07:00
base.py fix: media delivery fails for file paths containing spaces (#2621) 2026-03-23 06:59:59 -07:00
dingtalk.py fix(dingtalk): requirements check passes with only one credential set 2026-03-17 03:50:45 -07:00
discord.py fix(discord): ignore system messages in on_message handler (#2618) 2026-03-23 06:50:09 -07:00
email.py fix(email): guard against IndexError when IMAP search returns empty list 2026-03-22 04:38:17 -07:00
homeassistant.py fix: Home Assistant event filtering now closed by default (#1169) 2026-03-13 07:40:38 -07:00
matrix.py fix(matrix): duplicate messages, image caching for vision support (#2520) 2026-03-22 09:27:25 -07:00
mattermost.py Merge pull request #2443 from NousResearch/hermes/hermes-31d7db3b 2026-03-22 03:50:35 -07:00
signal.py fix(signal): use id instead of attachmentId in getAttachment RPC 2026-03-21 17:56:12 -07:00
slack.py refactor: centralize slash command registry (#1603) 2026-03-16 23:21:03 -07:00
sms.py fix(gateway): SMS persistent HTTP session + Matrix MIME media types 2026-03-17 04:35:14 -07:00
telegram.py feat(gateway): configurable Telegram reply threading mode (#2907) 2026-03-24 19:56:00 -07:00
webhook.py feat(gateway): add webhook platform adapter for external event triggers 2026-03-20 06:33:36 -07:00
whatsapp.py fix(whatsapp): download documents, audio, and video media from messages (#2978) 2026-03-25 08:37:28 -07:00