class_docstr: The Microsoft Channels Table implementation.
class_docstr_tok: ["The","Microsoft","Channels","Table","implementation","."]
docstr: Calls the API client to get the channels from the Microsoft Graph API.
  If all parameters are None, it will return all the channels from all the teams.
  
  Parameters
  ----------
  channel_id: Text
      The channel id to get the channel from.
  
  team_id: Text
      The team id to get the channels from.
  
  Returns
  -------
  List[Dict[Text, Any]]
      The channels from the Microsoft Graph API.
docstr_tok: ["Calls","the","API","client","to","get","the","channels","from","the","Microsoft","Graph","API",".","If","all","parameters","are","None",",","it","will","return","all","the","channels","from","all","the","teams",".","Parameters","--","--","--","--","--","channel_id",":","Text","The","channel","id","to","get","the","channel","from",".","team_id",":","Text","The","team","id","to","get","the","channels","from",".","Returns","--","--","--","-","List","[","Dict","[","Text",",","Any","]","]","The","channels","from","the","Microsoft","Graph","API","."]
code: def get_channels(
      self, channel_id: Text = None, team_id: Text = None
  ) -> List[Dict[Text, Any]]:
      """
      Calls the API client to get the channels from the Microsoft Graph API.
      If all parameters are None, it will return all the channels from all the teams.
  
      Parameters
      ----------
      channel_id: Text
          The channel id to get the channel from.
  
      team_id: Text
          The team id to get the channels from.
  
      Returns
      -------
      List[Dict[Text, Any]]
          The channels from the Microsoft Graph API.
      """
  
      api_client = self.handler.connect()
  
      # if both channel_id and team_id are given, get the channel with that id from the API
      if channel_id and team_id:
          return [api_client.get_channel(team_id, channel_id)]
      # if no parameter are given or only the team_id is given, get all the channels
      else:
          return api_client.get_channels()
  
imports: import pandas
  from typing import Text, List, Dict, Any
  from mindsdb.utilities import log
  from mindsdb_sql.parser import ast
  from mindsdb.integrations.libs.api_handler import APITable
  from mindsdb.integrations.handlers.ms_teams_handler.settings import ms_teams_handler_config
  from mindsdb.integrations.handlers.utilities.query_utilities.insert_query_utilities import INSERTQueryParser
  from mindsdb.integrations.handlers.utilities.query_utilities.select_query_utilities import SELECTQueryParser, SELECTQueryExecutor
label_desc: Use image node_id 2 for calling the ChannelsTable obj's underlying member method code with example usage: obj.get_channels(channel_id, team_id) and returns: list, api_client