Go to the Microsoft Privacy page, sign in with your account, and click on Microsoft Teams. You can then choose to request a copy of your Microsoft Teams data, including Chat history, Media, or other items such as contacts, shared tasks, and calendar.