Bug Description
File: tools/send_message_tool.py, line 461
Bug: adapter.send(chat_id=chat_id, content=chunk) — media_files and force_document are ignored
Impact: send_message(media="/path/to/file.pdf") sends text only, no attachment, on all platforms (qqbot, telegram, etc.)
Fix: pass media_files and force_document to adapter.send()
Steps to Reproduce
send_message(media="/tmp/xxx.pdf")
Expected Behavior
get a pdf file
Actual Behavior
url only
Affected Component
Gateway (Telegram/Discord/Slack/WhatsApp)
Messaging Platform (if gateway-related)
No response
Debug Report
Operating System
Ubuntu 24.04
Python Version
No response
Hermes Version
No response
Additional Logs / Traceback (optional)
Root Cause Analysis (optional)
No response
Proposed Fix (optional)
send_message_tool.py:461
result = await adapter.send(chat_id=chat_id, content=chunk,
media_files=media_files, force_document=force_document)
Are you willing to submit a PR for this?
Bug Description
File: tools/send_message_tool.py, line 461
Bug: adapter.send(chat_id=chat_id, content=chunk) — media_files and force_document are ignored
Impact: send_message(media="/path/to/file.pdf") sends text only, no attachment, on all platforms (qqbot, telegram, etc.)
Fix: pass media_files and force_document to adapter.send()
Steps to Reproduce
send_message(media="/tmp/xxx.pdf")
Expected Behavior
get a pdf file
Actual Behavior
url only
Affected Component
Gateway (Telegram/Discord/Slack/WhatsApp)
Messaging Platform (if gateway-related)
No response
Debug Report
Operating System
Ubuntu 24.04
Python Version
No response
Hermes Version
No response
Additional Logs / Traceback (optional)
Root Cause Analysis (optional)
No response
Proposed Fix (optional)
send_message_tool.py:461
result = await adapter.send(chat_id=chat_id, content=chunk,
media_files=media_files, force_document=force_document)
Are you willing to submit a PR for this?