send_file
Download a file from a URL and send it to a QQ group or friend as a file attachment. Supports any file type.
Instructions
Download a file from a URL and send it to a QQ group or friend.
Downloads the file to a temporary directory, uploads it to QQ, then cleans up. Supports any file type. For text use send_message, for images use send_image, for audio use send_voice.
Behavior: requires a publicly accessible URL (no auth). Download timeout is 60 seconds. The file is sent as a QQ file attachment.
Mutates the chat by sending a file.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| target | Yes | ||
| file_url | Yes | ||
| file_name | No | ||
| target_type | No | group |