class_docstr: Manages SELECT and INSERT operations for Rocket Chat messages.
class_docstr_tok: ["Manages","SELECT","and","INSERT","operations","for","Rocket","Chat","messages","."]
docstr: Posts a message using the Rocket Chat API.
  
  Args:
      query (ast.Insert): Given SQL INSERT query
docstr_tok: ["Posts","a","message","using","the","Rocket","Chat","API",".","Args",":","query","(","ast.Insert",")",":","Given","SQL","INSERT","query"]
code: def insert(self, query: ast.Insert):
      """Posts a message using the Rocket Chat API.
  
      Args:
          query (ast.Insert): Given SQL INSERT query
      """
      # See Post Message endpoint:
      # https://developer.rocket.chat/reference/api/rest-api/endpoints/core-endpoints/chat-endpoints/postmessage
      column_names = [col.name for col in query.columns]
      for insert_row in query.values:
          insert_params = dict(zip(column_names, insert_row))
  
          self.handler.call_api("chat_post_message", **insert_params)
  
imports: from typing import List
  import pandas
  from mindsdb.integrations.libs.api_handler import APITable
  from mindsdb.integrations.utilities.sql_utils import conditions_to_filter, project_dataframe, sort_dataframe
  from mindsdb_sql.parser import ast
label_desc: Use image node_id 2 for calling the ChannelMessagesTable obj's underlying member method code with example usage: obj.insert(query) without return types