Answer the question
In order to leave comments, you need to log in
How to auto approve incoming applications in xmpppy?
It is necessary to make automatic addition of friends in xmpppy.
Any incoming application must be approved and if the user wrote a message without a request to add it, add it. Tell me how?
Answer the question
In order to leave comments, you need to log in
I found it myself guys!
def presence(conn, event):
if event.getType() == 'subscribe':
client.send(xmpp.Presence(to=event.getFrom(), typ='subscribed'))
client.RegisterHandler('presence', presence)
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question