code: def searchForGroups(self, name, limit=10):
          
          params = {"search": name, "limit": limit}
          j = self.graphql_request(GraphQL(query=GraphQL.SEARCH_GROUP, params=params))
  
          return [Group._from_graphql(node) for node in j["viewer"]["groups"]["nodes"]]
docs: Find and get group thread by its name
  
          :param name: Name of the group thread
          :param limit: The max. amount of groups to fetch
          :return: :class:`models.Group` objects, ordered by relevance
          :rtype: list
          :raises: FBchatException if request failed