def _send_message(room_id, message, from_name, api_key=None, api_version=None, api_url=None, color=None, notify=False):
 parameters = dict()
 parameters['room_id'] = room_id
 parameters['from'] = from_name[:15]
 parameters['message'] = message[:10000]
 parameters['message_format'] = 'text'
 parameters['color'] = color
 parameters['notify'] = notify
 result = _query(function='message', api_key=api_key, api_version=api_version, room_id=room_id, api_url=api_url, method='POST', data=parameters)
 if result:
  return True
 else:
  return False

def _send_message ( room_id , message , from_name , api_key = None , api_version = None , api_url = None , color = None , notify = False ) : parameters = dict ( ) parameters [ 'room_id' ] = room_id parameters [ 'from' ] = from_name [ : 15 ] parameters [ 'message' ] = message [ : 10000 ] parameters [ 'message_format' ] = 'text' parameters [ 'color' ] = color parameters [ 'notify' ] = notify result = _query ( function = 'message' , api_key = api_key , api_version = api_version , room_id = room_id , api_url = api_url , method = 'POST' , data = parameters ) if result : return True else : return False
send a message to a hipchat room .