def create_multi(cls, jid, password, msg, recipients=None, rooms=None,
                     nick="SaltStack Bot"):
        '''
        Alternate constructor that accept multiple recipients and rooms
        '''
        obj = SendMsgBot(jid, password, None, msg)
        obj.recipients = [] if recipients is None else recipients
        obj.rooms = [] if rooms is None else rooms
        obj.nick = nick
        return obj
def create_multi ( cls , jid , password , msg , recipients = None , rooms = None , nick = "SaltStack Bot" ) : obj = SendMsgBot ( jid , password , None , msg ) obj . recipients = [ ] if recipients is None else recipients obj . rooms = [ ] if rooms is None else rooms obj . nick = nick return obj
Alternate constructor that accept multiple recipients and rooms