# HG changeset patch # User Menel # Date 1773741085 -3600 # Node ID be2f75957552b450efb933033369afb6a5203b8a # Parent 61428a339079d41d47de83d9606880e8480d3de3 mod_rest/README.md: Mention muc_bot in the readme. diff -r 61428a339079 -r be2f75957552 mod_rest/README.md --- 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