This one changes my status message on Google Talk

import xmpp

def set_status(username, password, status):
    jabber = xmpp.Client('gmail.com')
    jabber.connect(server=('talk.google.com',5223))
    jabber.auth(username, password, 'python_status_message')
    jabber.send(xmpp.Iq(typ='set', queryNS='google:shared-status',
        payload=[xmpp.Node('status', payload=status)]))
Advertisements

3 thoughts on “This one changes my status message on Google Talk”

  1. How to set invisible status?

    jabber.send(Iq(typ=’set’,
    queryNS=’google:shared-status’,
    payload=[Node(‘invisible’,
    attrs={‘value’:’true’}),
    ],
    )
    )

    Could not be set above.
    Please tell me the right way.

    Like

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

w

Connecting to %s