def chat_post_message(self, text, room_id=None, channel=None, **kwargs):
if room_id:<EOL><INDENT>return self.__call_api_post('<STR_LIT>', roomId=room_id, text=text, kwargs=kwargs)<EOL><DEDENT>elif channel:<EOL><INDENT>return self.__call_api_post('<STR_LIT>', channel=channel, text=text, kwargs=kwargs)<EOL><DEDENT>else:<EOL><INDENT>raise RocketMissingParamException('<STR_LIT>')<EOL><DEDENT>
Posts a new chat message.