Created
April 6, 2015 04:17
-
-
Save jengel3/a038e3d00253092e4570 to your computer and use it in GitHub Desktop.
Add all users in a Skype group
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def addContacts(): | |
import Skype4Py | |
skype = Skype4Py.Skype() | |
skype.Attach() | |
client = Skype4Py.client.Client(skype) | |
for chat in skype.Chats: | |
if len(chat.Members) > 50: | |
print chat.Name | |
for user in chat.Members: | |
user.SetBuddyStatusPendingAuthorization("Add me? (from group chat)") | |
addContacts() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment