Skype4py不响应群聊

时间:2015-01-08 19:13:42

标签: python skype skype4py

我尝试运行脚本来响应个人和群组聊天,但它只响应个别聊天

import Skype4Py

def commands(Message, Status):
    if Status == 'SENT' or Status == 'RECEIVED': 
        if Message.Body == "ping":
            cmd_ping(Message)
        else:
            pass
    else:
        pass

def cmd_ping(Message):
    Message.Chat.SendMessage('pong')
    print "Ping Command Received \n"

skype = Skype4Py.Skype(); 
skype.OnMessageStatus = commands
skype.Attach();

while True: 
raw_input('')

1 个答案:

答案 0 :(得分:1)

我认为您已在新版Skype中创建了聊天。

请尝试以下解决方案:在任何群组或个人聊天中创建P2P聊天(通过/createmoderatedchat)。我们在项目中遇到了同样的问题,因此您可以参考我们的wiki page

相关问题