Created message.send (markdown)

ni-richard 2019-09-10 17:29:38 +02:00
parent b4e2c9b42d
commit 2d986b7157

28
message.send.md Normal file

@ -0,0 +1,28 @@
* **Description**: Sends a message to the chat bot.
* **Subscribers**: [FrontendProxyHandler](https://github.com/avatao-content/baseimage-tutorial-framework/wiki/FrontendProxyHandler)
```json
{
"key": "message.send",
"intent": "control",
"scope": "websocket"
}
```
| Parameter | Type | Required | Description |
| ------------ |:--------:|:------------------:| --------------------------- |
| *message* | `string` | :heavy_check_mark: | Body of the message, should be Markdown compatible. |
| *originator* | `string` | | Name of the sender. |
| *wpm* | `number` | | Tunes typing speed based on words per minute. |
| *typing* | `boolean` | | Displays typing indicator when true. |
***
**Example**:
```json
{
"key": "message.send",
"originator": "Brian Kernighan",
"message": "hello, world"
}
```