skpy/chat.py
def create(self, members=(), admins=()):
        """
        Create a new group chat with the given users.

        The current user is automatically added to the conversation as an admin.  Any other admin identifiers must also
        be present in the member list.

        Args:
            members (str list): user identifiers to initially join the conversation
            admins (str list): user identifiers to gain admin privileges
        """
        memberObjs = [{"id": "8:{0}".format(self.skype.userId), "role": "Admin"}]
        for id in members:
            if id == self.skype.userId:
                continue
            memberObjs.append({"id": "8:{0}".format(id), "role": "Admin" if id in admins else "User"})
        resp = self.skype.conn("POST", "{0}/threads".format(self.skype.conn.msgsHost),
                               auth=SkypeConnection.Auth.RegToken, json={"members": memberObjs})
        return self.chat(resp.headers["Location"].rsplit("/", 1)[1])
def create(self, members=(), admins=()):
        memberObjs = [{"id": "8:{0}".format(self.skype.userId), "role": "Admin"}]
        for id in members:
            if id == self.skype.userId:
                continue
            memberObjs.append({"id": "8:{0}".format(id), "role": "Admin" if id in admins else "User"})
        resp = self.skype.conn("POST", "{0}/threads".format(self.skype.conn.msgsHost),
                               auth=SkypeConnection.Auth.RegToken, json={"members": memberObjs})
        return self.chat(resp.headers["Location"].rsplit("/", 1)[1])
def create ( self , members = ( ) , admins = ( ) ) : memberObjs = [ { "id" : "8:{0}" . format ( self . skype . userId ) , "role" : "Admin" } ] for id in members : if id == self . skype . userId : continue memberObjs . append ( { "id" : "8:{0}" . format ( id ) , "role" : "Admin" if id in admins else "User" } ) resp = self . skype . conn ( "POST" , "{0}/threads" . format ( self . skype . conn . msgsHost ) , auth = SkypeConnection . Auth . RegToken , json = { "members" : memberObjs } ) return self . chat ( resp . headers [ "Location" ] . rsplit ( "/" , 1 ) [ 1 ] )
Create a new group chat with the given users.

        The current user is automatically added to the conversation as an admin.  Any other admin identifiers must also
        be present in the member list.

        Args:
            members (str list): user identifiers to initially join the conversation
            admins (str list): user identifiers to gain admin privileges
Create a new group chat with the given users .