0

I am using skype4py now and I am looking how to send a message if someone sends me a message.

The website of of Skype4Py is not very helpfull on this subject

I can already send a message but only when I call a script and not if a message comes in.

Joris Janssen
  • 64
  • 1
  • 10

1 Answers1

0

You can get chat from ChatMessage.Chat and call its method sendMessaage. Following simple callback will do the trick:

def OnMessageStatus(msg, status):
    if status == Skype4Py.cmsReceived:
        msg.Chat.SendMessage("n/a")
user 12321
  • 2,846
  • 1
  • 24
  • 34