class_docstr: The Microsoft Graph API client for the Microsoft Teams handler.
  This client is used for accessing the Microsoft Teams specific endpoints of the Microsoft Graph API.
  Several common methods for submitting requests, fetching data, etc. are inherited from the base class.
class_docstr_tok: ["The","Microsoft","Graph","API","client","for","the","Microsoft","Teams","handler",".","This","client","is","used","for","accessing","the","Microsoft","Teams","specific","endpoints","of","the","Microsoft","Graph","API",".","Several","common","methods","for","submitting","requests",",","fetching","data",",","etc",".","are","inherited","from","the","base","class","."]
docstr: Get all chat messages for all chats.
  
  Returns
  -------
  List[Dict]
      The chat messages data.
docstr_tok: ["Get","all","chat","messages","for","all","chats",".","Returns","--","--","--","-","List","[","Dict","]","The","chat","messages","data","."]
code: def get_all_chat_messages(self) -> List[Dict]:
      """
      Get all chat messages for all chats.
  
      Returns
      -------
      List[Dict]
          The chat messages data.
      """
  
      chat_messages = []
      for chat_id in [chat["id"] for chat in self.get_chats()]:
          for messages in self._fetch_data(f"chats/{chat_id}/messages"):
              chat_messages.extend(messages)
  
      return chat_messages
  
file_path: mindsdb/mindsdb/integrations/handlers/ms_teams_handler/ms_graph_api_teams_client.py
imports: from typing import Text, List, Dict, Optional
  from mindsdb.integrations.handlers.utilities.api_utilities.microsoft.ms_graph_api_utilities import MSGraphAPIBaseClient
label_desc: Use image node_id 12 for calling the MSGraphAPITeamsClient obj's underlying member method code with example usage: obj.get_all_chat_messages() and returns: chat_messages