mirror of
https://github.com/avatao-content/baseimage-tutorial-framework
synced 2024-11-25 06:51:31 +00:00
Created message.send (markdown)
parent
b4e2c9b42d
commit
2d986b7157
28
message.send.md
Normal file
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"
|
||||||
|
}
|
||||||
|
```
|
Loading…
Reference in New Issue
Block a user