Teams tag is mainly focused on the general issue of Microsoft Teams troubleshooting. The following recommendations for APIs are for informational purposes only:
Currently, it is not possible to export chat history in the client. Teams Export APIs allow you to export 1:1, group chat, meeting chats, and channel messages from Microsoft Teams. If your organization needs to export Microsoft Teams messages, you are able to extract them using Teams Export APIs. Chat Message represents an individual chat message within a channel or chat. The chat message can be a root chat message or part of a reply thread that is defined by the replyToId property in the chat message.
For more examples and details, please refer to: https://learn.microsoft.com/en-us/microsoftteams/export-teams-content
If the answer is helpful, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.