Forum Discussion
altjx
Aug 17, 2023Copper Contributor
Is it not possible to retrieve chat history from a Teams Bot?
I am reviewing documentation for interacting with users, and for some reason I haven't run across the ability to pull chat history. So in other words, if a user sends me a message, there doesn't appear to be an API endpoint that I can reach out to in order to get the history of the chat.
Is this not possible?
- Sayali-MSFTMicrosoftaltjx - Thanks for reporting your issue.
We will check this at our end and will get back to you. - Sayali-MSFTMicrosoft
altjx -For a bot created using bot framework you need to enable storage of the conversations to a database like cosmos DB or blob storage to get the chat conversation history. The official documentation details steps to create this configuration for a bot. This is basically creating a app settings file with the details of your storage and referencing then in the bot to store the conversation data.