Makes a bot send a file message.
A file can be sent by using a URL or a file ID.
Note about using a file ID
- Whenever a file message is sent, the recipient's shared storage will be reduced by the size of the file.
- The following file extensions are blocked by default.
'bat', 'cmd', 'com', 'cpl', 'exe', 'scr', 'js', 'vbs', 'wsf', 'hta'
- You can add or remove file extensions to block by default under Security > File Security in the LINE WORKS Admin.
| Parameter | Type | Required | Description |
|---|---|---|---|
| type | string | Y | Set this parameter to "file". |
| originalContentUrl | string | N | URL of the source file (PNG format, HTTPS only). Maximum length: 1,000 characters Either originalContentUrl or fileId, but not both, must be specified (required). |
| fileId | string | N | File ID acquired when uploading content Either originalContentUrl or fileId, but not both, must be specified (required). |
{ "content": { "type": "file", "originalContentUrl": "https://line.worksmobile.com/en/wp-content/uploads/2020/05/user-start-guide-v2.0.pdf" }}{ "content": { "type": "file", "fileId": "jp1.1628695315008671000.1628781715.0.1000001.0.0.0" }}