Hi Konstantin,
On Donnerstag, 5. Juli 2018 08:35:42 CEST you wrote:
Hi, I want to send message to conference. I have added sender user to that conference and trying to send message as usual but JID goes like CONF_NAME@conference.JABBER_SRV but it doesn't work. I can't find anything about conferences in documentation.
Please see the MUC module [1] and the muc_logger.py example [2] for how to use Multi-User Chats (Conferences).
Since joining a MUC/Conference on a client is a stateful operation, it is a bit more complex than simply sending a message: the MUC module takes care of most of that, but in the end there’s still an object which holds the state and you have to use the send method of that object.
However, depending on your use-case, you might want to go a different route. For example, if what you are building is a kind of "notification bot" which rarely sends messages to a MUC and does not need to receive messages, it might be more wise to look into which features your server offers for that. For example, prosody has [3] which allows to send messages to MUCs via a Slack- like HTTP API.
If you give more details on what you’re trying to achieve, I can probably give you more ideas on how to do that.
Please note, too, that you need to be subscribed to the mailing list in order to post. You can alternatively also join our MUC at aioxmpp@conference.zombofant.net xmpp:aioxmpp@conference.zombofant.net?join.
kind regards & have fun, Jonas
[1]: https://docs.zombofant.net/aioxmpp/0.9/api/public/muc.html [2]: https://github.com/horazont/aioxmpp/blob/release-0.9/examples/ muc_logger.py
(Note: I am assuming that you are using the latest release, which is why I pointed the links to the documentation/example from the latest release. If you’re using the devel branch, please replace 0.9 with devel in the documentation link and use the example from the devel branch).
aioxmpp-devel@lists.zombofant.net