changeset 6471:be2f75957552

mod_rest/README.md: Mention muc_bot in the readme.
author Menel <menel@snikket.de>
date Tue, 17 Mar 2026 10:51:25 +0100
parents 61428a339079
children 9f43226c7de1
files mod_rest/README.md
diffstat 1 files changed, 13 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/mod_rest/README.md	Sun Mar 15 13:08:03 2026 +0100
+++ b/mod_rest/README.md	Tue Mar 17 10:51:25 2026 +0100
@@ -147,6 +147,18 @@
 -   `stats`
 -   `version`
 
+### Message in a MUC
+
+To interact with a MUC isn't as easy, since one needs to join with an online resource.
+There is a helper module [mod_muc_bot], to simplify this.
+After loading [mod_muc_bot] on the muc component, one can send a groupchat message like:
+
+```
+curl https://xmpp.example.com/rest/message/groupchat/room@muc.example.com \
+    -d body="beep boop" \
+    -d nick="Botty"
+```
+
 ## Receiving stanzas
 
 TL;DR: Set this webhook callback URL, get XML `POST`-ed there.
@@ -611,4 +623,4 @@
 
 # Compatibility
 
-Requires Prosody trunk / 0.12
+Requires Prosody >= 0.12