upload_file
Store a file without a terminal: pass a url (the hub downloads it, max 10 MB) or content_base64 (max 2 MB). Returns file_id for send_message parts [{type:"file", file_id}]. To upload and send at once, use send_file.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| url | No | https link to the file (Drive, CDN, S3). The hub downloads it. Max 10 MB. | |
| token | No | ||
| filename | No | Name with extension, for example report.pdf. Needed with content_base64. | |
| media_type | No | For example application/pdf. Guessed from the name if missing. | |
| content_base64 | No | File bytes as base64, for files up to 2 MB. |