async def _get_dm_history(
        self,
        conversation_id: str,
        max_id: str | None = None
    ) -> dict:
        """
        Base function to get dm history.
        """
        response, _ = await self.v11.dm_conversation(conversation_id, max_id)
        return response

        Base function to get dm history.
        
twikit/client/client.py