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

%3CLINGO-SUB%20id%3D%22lingo-sub-1873733%22%20slang%3D%22en-US%22%3EHow%20to%20get%20user%20info%20in%20teams%20bot%20whenever%20user%20uninstalls%20the%20app%20on%20teams%20%3F%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1873733%22%20slang%3D%22en-US%22%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EI%20have%20created%20a%20teams%20bot.%20It%20is%20a%201%3A1%20chat%20and%20notification%20bot.%20I%20want%20to%20delete%20users%20data%20from%20my%20db%20whenever%20user%20uninstalls%20the%20application%20from%20teams.%26nbsp%3B%3C%2FP%3E%3CP%3EI'm%20not%20receiving%20any%20event%20in%20my%20bot%20whenever%20user%20uninstalls%20the%20app.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EIs%20there%20some%20way%20out%20to%20get%20user%20info%20whenever%20user%20uninstalls%20the%20app%20%3F%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-1873733%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3EDeveloper%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3EMicrosoft%20Teams%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E
Occasional 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.