class_docstr: A class for handling connections and interactions with the Rocket Chat API.
  
  Attributes:
      username (str): Rocket Chat username to use for authentication.
      password (str): Rocket Chat username to use for authentication.
      auth_token (str): Rocket Chat authorization token to use for all API requests.
      auth_user_id (str): Rocket Chat user ID to associate with all API requests
      domain (str): Path to Rocket Chat domain to use (e.g. https://mindsdb.rocket.chat).
      client (RocketChatClient): The `RocketChatClient` object for interacting with the Rocket Chat API.
      is_connected (bool): Whether or not the API client is connected to the Rocket Chat API.
class_docstr_tok: ["A","class","for","handling","connections","and","interactions","with","the","Rocket","Chat","API",".","Attributes",":","username","(","str",")",":","Rocket","Chat","username","to","use","for","authentication",".","password","(","str",")",":","Rocket","Chat","username","to","use","for","authentication",".","auth_token","(","str",")",":","Rocket","Chat","authorization","token","to","use","for","all","API","requests",".","auth_user_id","(","str",")",":","Rocket","Chat","user","ID","to","associate","with","all","API","requests","domain","(","str",")",":","Path","to","Rocket","Chat","domain","to","use","(","e.g",".","https",":","\/\/mindsdb.rocket.chat",")",".","client","(","RocketChatClient",")",":","The","`","RocketChatClient","`","object","for","interacting","with","the","Rocket","Chat","API",".","is_connected","(","bool",")",":","Whether","or","not","the","API","client","is","connected","to","the","Rocket","Chat","API","."]
docstr: Registers all API tables and prepares the handler for an API connection.
  
  Args:
      name: (str): The handler name to use
docstr_tok: ["Registers","all","API","tables","and","prepares","the","handler","for","an","API","connection",".","Args",":","name",":","(","str",")",":","The","handler","name","to","use"]
code: def __init__(self, name: str = None, **kwargs):
      """Registers all API tables and prepares the handler for an API connection.
  
      Args:
          name: (str): The handler name to use
      """
      super().__init__(name)
      self.username = None
      self.password = None
      self.auth_token = None
      self.auth_user_id = None
      self.domain = None
  
      args = kwargs.get("connection_data", {})
      if "domain" not in args:
          raise ValueError(
              'Must include Rocket Chat "domain" to read and write messages'
          )
      self.domain = args["domain"]
  
      if "token" in args and "user_id" in args:
          self.auth_token = args["token"]
          self.auth_user_id = args["user_id"]
      elif "username" in args and "password" in args:
          self.username = args["username"]
          self.password = args["password"]
      else:
          raise ValueError(
              'Need "token" and "user_id", or "username" and "password" to connect to Rocket Chat'
          )
  
      self.client = None
      self.is_connected = False
  
      self._register_table("channels", ChannelsTable(self))
  
      self._register_table(
          "channel_messages", ChannelMessagesTable(self)
      )
  
      self._register_table("directs", DirectsTable(self))
  
      self._register_table("direct_messages", DirectMessagesTable(self))
  
      self._register_table("users", UsersTable(self))
  
file_path: mindsdb/mindsdb/integrations/handlers/rocket_chat_handler/rocket_chat_handler.py
imports: import pandas
  from typing import Dict, List
  from rocketchat_API.rocketchat import RocketChat
  from mindsdb.integrations.handlers.rocket_chat_handler.rocket_chat_tables import ChannelMessagesTable, ChannelsTable, DirectsTable, DirectMessagesTable, UsersTable
  from mindsdb.integrations.libs.api_handler import APIChatHandler
  from mindsdb.integrations.libs.response import HandlerStatusResponse, HandlerResponse
  from mindsdb.utilities import log
  from mindsdb_sql import parse_sql
label_desc: Use image node_id 1 to create a new RocketChatHandler object from inherited base classes: APIChatHandler with example: obj = RocketChatHandler(name)