Ayush Arya
Ayush Arya

Reputation: 39

Is there any callback or event from which I can get user details when user uninstall my Microsoft teams app?

My teams app contains a bot feature and I have created my bot in nodeJs. I'd like to know if there is any event which is triggered whenever user uninstalls my app.

Upvotes: 1

Views: 261

Answers (1)

Trinetra-MSFT
Trinetra-MSFT

Reputation: 1015

The conversationUpdate event with the membersRemoved object in the payload is sent when either your bot is removed from a team, or a user is removed from a team where a bot has been added. Microsoft Teams also adds eventType.teamMemberRemoved in the channelData object. As with the membersAdded object, you should parse the membersRemoved object for your bot's App ID to determine who was removed.Please take a look at Handle Bot Events

Upvotes: 1

Related Questions