Reputation: 39
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
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