class_docstr: The Microsoft Teams Channel Messages Table implementation.       
class_docstr_tok: ["The","Microsoft","Teams","Channel","Messages","Table","implementation","."]
docstr: Calls the API client to get the messages from the Microsoft Graph API.
  If all parameters are None, it will return all the messages from all the channels from all the teams.
  
  Parameters
  ----------
  team_id: Text
      The team id to get the messages from.
  
  channel_id: Text
      The channel id to get the messages from.
  
  message_id: Text
      The message id to get the message from.
docstr_tok: ["Calls","the","API","client","to","get","the","messages","from","the","Microsoft","Graph","API",".","If","all","parameters","are","None",",","it","will","return","all","the","messages","from","all","the","channels","from","all","the","teams",".","Parameters","--","--","--","--","--","team_id",":","Text","The","team","id","to","get","the","messages","from",".","channel_id",":","Text","The","channel","id","to","get","the","messages","from",".","message_id",":","Text","The","message","id","to","get","the","message","from","."]
code: def get_messages(
      self,
      team_id: Text = None,
      channel_id: Text = None,
      message_id: Text = None,
  ) -> List[Dict[Text, Any]]:
      """
      Calls the API client to get the messages from the Microsoft Graph API.
      If all parameters are None, it will return all the messages from all the channels from all the teams.
  
      Parameters
      ----------
      team_id: Text
          The team id to get the messages from.
  
      channel_id: Text
          The channel id to get the messages from.
  
      message_id: Text
          The message id to get the message from.
      """
  
      api_client = self.handler.connect()
  
      # if all parameters are given, get the message with that id from that channel from that team from the API
      if message_id and channel_id and team_id:
          channel_message = api_client.get_channel_message(
              team_id, channel_id, message_id
          )
          # add the missing eventDetail attribute to the channel message
          channel_message["eventDetail"] = {
              "@odata.type": None,
              "visibleHistoryStartDateTime": None,
              "members": None,
              "channelId": None,
              "channelDisplayName": None,
              "initiator": {
                  "application": {
                      "@odata.type": None,
                      "id": None,
                      "displayName": None,
                      "applicationIdentityType": None,
                  },
                  "device": None,
                  "user": {
                      "@odata.type": None,
                      "id": None,
                      "displayName": None,
                      "userIdentityType": None,
                      "tenantId": None,
                  },
              },
          }
  
          return [channel_message]
      # for any other combination of parameters, get all the messages from all the channels from all the teams
      else:
          return api_client.get_channel_messages()
  
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 ChannelMessagesTable obj's underlying member method code with example usage: obj.get_messages(team_id, channel_id, message_id) and returns: list, api_client