class_docstr: The Microsoft Teams handler implementation.
class_docstr_tok: ["The","Microsoft","Teams","handler","implementation","."]
docstr: Check connection to the handler.
  
  Returns
  -------
  StatusResponse
      Response object with the status of the connection.
docstr_tok: ["Check","connection","to","the","handler",".","Returns","--","--","--","-","StatusResponse","Response","object","with","the","status","of","the","connection","."]
code: def check_connection(self) -> StatusResponse:
      """
      Check connection to the handler.
  
      Returns
      -------
      StatusResponse
          Response object with the status of the connection.
      """
  
      response = StatusResponse(False)
  
      try:
          connection = self.connect()
          connection.check_connection()
          response.success = True
          response.copy_storage = True
      except Exception as e:
          logger.error(f"Error connecting to Microsoft Teams: {e}!")
          response.success = False
          response.error_message = str(e)
  
      self.is_connected = response.success
  
      return response
  
file_path: mindsdb/mindsdb/integrations/handlers/ms_teams_handler/ms_teams_handler.py
imports: from typing import Text, Dict
  from mindsdb.utilities import log
  from mindsdb_sql import parse_sql
  from mindsdb.integrations.handlers.utilities.auth_utilities import MSGraphAPIAuthManager
  from mindsdb.integrations.handlers.ms_teams_handler.settings import ms_teams_handler_config
  from mindsdb.integrations.handlers.ms_teams_handler.ms_graph_api_teams_client import MSGraphAPITeamsClient
  from mindsdb.integrations.libs.response import HandlerStatusResponse
  from mindsdb.integrations.libs.api_handler import APIChatHandler
  from mindsdb.integrations.handlers.ms_teams_handler.ms_teams_tables import ChannelsTable, ChannelMessagesTable, ChatsTable, ChatMessagesTable
label_desc: Use image node_id 3 for calling the MSTeamsHandler obj's underlying member method code with example usage: obj.check_connection() and returns: response