Код: Выделить всё
from xmpp import Client
from xmpp.protocol import JID, Message
jabberid = 'user@server.com'
password = 'secret'
receiver = 'sender_id@conference.server.com'
message = 'Hello world!'
jid = JID(jabberid)
connection = Client(server=jid.getDomain(), debug=None)
connection.connect()
connection.auth(user=jid.getNode(), password=password, resource=jid.getResource())
connection.send(Message(to=receiver, body=message))
Может быть, что-то вроде
Код: Выделить всё
from twisted.words.protocols.jabber.jid import JID
from twisted.words.protocols.jabber.client import XMPPAuthenticator
jabberid = 'user@server.com'
password = 'secret'
jid = JID(jabberid)
XMPPAuthenticator(jid, password)
Подробнее здесь: https://stackoverflow.com/questions/791 ... ly-twisted
Мобильная версия