Ruwendra Benjamin
Ruwendra Benjamin

Reputation: 39

How to send an automated message to a skype group chat using python

Even though i am able to send messages to an individual skype contact using skpy module. i am unable to send to a group chat.

Below is the simple code i've used to send:

from skpy import Skype
sk = Skype("myskypeID", "pwd") # connect to Skype
content="the message i wanna send"
ch = sk.contacts["SkypeID_in_contacts"].chat 
ch.sendMsg(content)

I cannot find any skype group ID for my group chats. Is there anyway of finding a skype group ID or some other method to append with python code i have used. Please help

Upvotes: 3

Views: 7336

Answers (1)

All Group Chart in Skype have an ID like

19:<random>@thread.skype

Here you can find a simple script to found all your groups IDs How to get Skype Group Chat ID

End then you can found your chat with that id

ch = sk.chats["19:[email protected]"]
ch.sendMsg(msg)

Upvotes: 3

Related Questions