Skip to content

feat: add support for receiving and downloading file messages#66

Open
luckyyang-github wants to merge 2 commits intofastclaw-ai:mainfrom
luckyyang-github:feat/receive-file
Open

feat: add support for receiving and downloading file messages#66
luckyyang-github wants to merge 2 commits intofastclaw-ai:mainfrom
luckyyang-github:feat/receive-file

Conversation

@luckyyang-github
Copy link
Copy Markdown

Fixes an issue where WeClaw ignores file messages sent from WeChat clients (e.g. PDFs, documents).

Added extractFile and handleFileSave logic similar to the existing image processing to properly download and save files using the CDN.

Fixes an issue where WeClaw ignores file messages sent from WeChat clients (e.g. PDFs, documents).

Added extractFile and handleFileSave logic similar to existing image processing to download and save files.
Instead of just replying 'Saved: filename', WeClaw now forwards the event to the default agent as a [System] message containing the local file path so the agent can see and process it.
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