How to get user info in teams bot whenever user uninstalls the app on teams ?

Copper Contributor

 

I have created a teams bot. It is a 1:1 chat and notification bot. I want to delete users data from my db whenever user uninstalls the application from teams. 

I'm not receiving any event in my bot whenever user uninstalls the app.

 

Is there some way out to get user info whenever user uninstalls the app ? 

1 Reply

@ayusharya - whenever user uninstall the bot you will receive the conversation update event, Then you can get the User information under turncontext.activity.from. Try if that helps.