【问题标题】:Skype4py doesn't respond to group chatsSkype4py 不响应群聊
【发布时间】:2015-03-07 00:30:18
【问题描述】:

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

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('')

【问题讨论】:

  • 'RECIEVED' -> 'RECEIVED'?
  • 更改某些内容时出现拼写错误,但在群聊中仍然无效。
  • 啊,好的。我从未使用过 Skype4py,但这是我注意到的。无论哪种方式,您是否检查过OnMessageStatus 在群聊期间是否真的被呼叫?比如说,通过登录控制台还是总是回复?
  • 我通读了文档,这是我能找到的唯一一个检查新消息的调用

标签: python skype skype4py


【解决方案1】:

我想你已经在新版本的 Skype 中创建了聊天。

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

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2016-09-11
    • 2016-10-27
    • 1970-01-01
    • 2017-07-13
    • 2016-02-29
    • 1970-01-01
    相关资源
    最近更新 更多