I am currently using SleekXMPP to build a simple XMPP client in Python. I’m a beginner though, and while I’ve read about stanzas, presence, roster, etc. I’m not sure how to get XML from the stream or how to handle it. I can’t find any documentation on this either.
So basically, what I’m wondering is, how do I make an event or a handler for something like a message? So I could call a function everytime a message is received or something.
Thanks for your help!
The SleekXMPP quickstart guide should help you get started with things like this.
The relevant part for handling messages is this line:
With self.message implemented as: