File Parser
File parser consists of 2 parts: file and attachment.
File
file converts the provided text into an attachable file.
Usage
{
file: name: content;
}
Properties
Property | Type | Description | Required |
---|---|---|---|
name | string | File name | Yes |
content | string | File content | Yes |
Example
{file:
file.txt:
This is a file.
}
Attachment
attachment converts the provided url into an attachable file.
Usage
{
attachment: name: url;
}
Properties
Property | Type | Description | Required |
---|---|---|---|
name | string | File name | Yes |
url | string | Url | Yes |
Example
{attachment:
file.png:
https://cdn.vox-cdn.com/thumbor/WR9hE8wvdM4hfHysXitls9_bCZI=/0x0:1192x795/1400x1400/filters:focal(596x398:597x399)/cdn.vox-cdn.com/uploads/chorus_asset/file/22312759/rickroll_4k.jpg
}