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 chats.
  
  Returns
  -------
  List[Dict]
      The chats data.
docstr_tok: ["Get","all","chats",".","Returns","--","--","--","-","List","[","Dict","]","The","chats","data","."]
code: def get_chats(self) -> List[Dict]:
      """
      Get all chats.
  
      Returns
      -------
      List[Dict]
          The chats data.
      """
  
      chats = []
      for chat in self._fetch_data(
          "chats", params={"$expand": "lastMessagePreview"}
      ):
          chats.extend(chat)
  
      return chats
  
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 9 for calling the MSGraphAPITeamsClient obj's underlying member method code with example usage: obj.get_chats() and returns: chats