def reply(self, jid, content):
    message = domish.Element((None, 'message'))
    message['to'] = jid
    message['type'] = 'chat'
    message.addUniqueId()
    message.addElement((None, 'body'), content=content)
    self.xmlstream.send(message)
def reply(self, jid, content):
    message = domish.Element((None, 'message'))
    message['to'] = jid
    message['type'] = 'chat'
    message.addUniqueId()
    message.addElement((None, 'body'), content=content)
    self.xmlstream.send(message)