Skip to content

fix: SendMediaFromURL support local file paths#43

Open
Wxw-Gu wants to merge 1 commit intofastclaw-ai:mainfrom
Wxw-Gu:fix/send-media-local-file
Open

fix: SendMediaFromURL support local file paths#43
Wxw-Gu wants to merge 1 commit intofastclaw-ai:mainfrom
Wxw-Gu:fix/send-media-local-file

Conversation

@Wxw-Gu
Copy link
Copy Markdown

@Wxw-Gu Wxw-Gu commented Apr 1, 2026

Add os.Stat check to detect local files and route them to SendMediaFromPath instead of treating them as URLs to download. Also add explicit error when path is neither a local file nor an HTTP URL, providing clear feedback instead of cryptic "unsupported protocol scheme" error.

Add os.Stat check to detect local files and route them to
SendMediaFromPath instead of treating them as URLs to download.
Also add explicit error when path is neither a local file nor
an HTTP URL, providing clear feedback instead of cryptic
"unsupported protocol scheme" error.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant