Add examples on how to send messages to rooms

This adds two similar examples, one using matrix.client, and the other using
matrix.api.
This commit is contained in:
Adrian Perez de Castro
2016-07-04 13:44:23 +03:00
parent fabb5330d1
commit 43470d72d1
3 changed files with 44 additions and 0 deletions

View File

@@ -69,9 +69,11 @@ api:send_text(response.room_id, "Hello!")
For the low-level `matrix.api`:
* [examples/set-display-name.lua](./examples/set-display-name.lua)
* [examples/api-send-message.lua](./examples/api-send-message.lua)
For the high-level `matrix.client`:
* [examples/get-user-info.lua](./examples/get-user-info.lua)
* [examples/client-send-message.lua](./examples/client-send-message.lua)
More examples can be found in the [examples](./examples) subdirectory.