wecom_upload_media
Upload a local file as WeCom temporary media, supporting mass-send and moment attachments via attachment type parameter.
Instructions
Upload a local file as WeCom temporary media.
If ``attachment_type`` (1=mass-send, 2=moment) is given, uses
``/cgi-bin/media/upload_attachment``; otherwise uses the plain
``/cgi-bin/media/upload`` endpoint.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| file_path | Yes | ||
| media_type | No | image | |
| attachment_type | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||