diff options
author | Niklas Halle <niklas@niklashalle.net> | 2020-09-18 16:23:04 +0200 |
---|---|---|
committer | Niklas Halle <niklas@niklashalle.net> | 2020-09-18 16:23:04 +0200 |
commit | fc2f037e216e517ec4b87b0663277a3fc40c1d74 (patch) | |
tree | 0877ab6c1f5b13deb99f258ebc447e067ed3ce37 /README.md | |
parent | 48d6a7408f2371c5b66482cc68ec2b801d444700 (diff) | |
download | n_core-fc2f037e216e517ec4b87b0663277a3fc40c1d74.tar.gz n_core-fc2f037e216e517ec4b87b0663277a3fc40c1d74.zip |
fix stuff, start encoding, add doku for attachment sending
Diffstat (limited to 'README.md')
-rw-r--r-- | README.md | 15 |
1 files changed, 14 insertions, 1 deletions
@@ -64,10 +64,23 @@ No extra content. The text should be printed underlined. No extra content. +##### `attachment` +The text is the caption of an attached file. +Extra content: an `attachment`-object. (TODO: extend to array of attachments) + ##### `command` -The text should be formated in a way to underlying platform of the bridge would recognize it (e.g. prefix with '/'). +The text should be formatted in a way to underlying platform of the bridge would recognize it (e.g. prefix with '/'). Extra content: the description of the command. ##### `link` The text should be formatted as a link. Extra content: the alt text for the uri - the uri should be the text itself, so that clients ignoring this annotation still show the real uri. + +#### `attachment` +The `attachment` object: + +| Field | Type | Description | +|-------|------|-------------| +| `type` | string | MIME type of the attachment (e.g. "png", "gif", etc) | +| `name` | string | The name of the file (including the file ending) | +| `content` | string | Base64 encoded file contents |
\ No newline at end of file |