code: def sendCommand(self, **msg):
  		
  		assert 'type' in msg, 'Message type is required.'
  
  		msg['id'] = self.next_message_id
  		self.next_message_id += 1
  
  		if self.next_message_id >= maxint:
  			self.next_message_id = 1
  
  		self.sendMessage(json.dumps(msg))
  		return msg['id']
docs: Sends a raw command to the Slack server, generating a message ID automatically.