[Tutor] Python Xmpp Received Message
Ahmet Can KEPENEK
ahmetcan196 at gmail.com
Thu Sep 6 09:59:37 CEST 2012
I wrote application with xmpp. It sending message from gtalk. I want to
print received message. How can i do? My application short code as follows.
def process_message():
client = xmpp.Client('gmail.com')
client.connect( server=('talk.google.com',5223) )
client.auth(user,passwd, 'botty')
to = raw_input("to: ");
if client:
message = raw_input("message: ")
client.send( xmpp.Message( to,message ) )
if __name__ == "__main__":
user = raw_input("User: ")
passwd = getpass.getpass("Pass: ")
process_message()
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/tutor/attachments/20120906/bf80a30c/attachment.html>
More information about the Tutor
mailing list