I'm coding by python about Gtalk I use XMPPPY.
But I can chat with GTalk client but the problem is I can't accept invitation.
Is XMPPY can do ?
Looks like you want to "authorize" the request. I'm assuming you've received the request at the client. In the roster class (xmpp.roster) there is an "Authorize" method. It sends the "subscribed" packet to accept the roster request. This is what the method looks like:
""" Authorise JID 'jid'. Works only if these JID requested auth previously. """
Wait, that may not be what you're asking at all. Are you trying to process a chat or a roster request? Take a look at the example (small) client they have called xtalk.py. I think you're interested in the xmpp_message method.