App uninstalled event (personal scope)

%3CLINGO-SUB%20id%3D%22lingo-sub-2111339%22%20slang%3D%22en-US%22%3EApp%20uninstalled%20event%20(personal%20scope)%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2111339%22%20slang%3D%22en-US%22%3E%3CP%3EHi%20there.%3CBR%20%2F%3EI'm%20trying%20to%20build%20a%20personal%20bot%20which%20has%20to%20send%20proactive%20messages%20regularly.%20I%20made%20it%20work%20by%20storing%20the%20conversation%20(and%20bunch%20of%20other%20field%20from%20the%20activity)%20when%20the%20user%20installed%20the%20app%2C%20just%20like%20the%20%3CA%20href%3D%22https%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fmicrosoftteams%2Fplatform%2Fbots%2Fhow-to%2Fconversations%2Fsend-proactive-messages%3Ftabs%3Ddotnet%22%20target%3D%22_self%22%20rel%3D%22noopener%20noreferrer%22%3Eexamples%20here.%3C%2FA%3E%26nbsp%3BNow%20it%20works%20great%2C%20but%20I%20realized%20that%20I%20keep%20messaging%20users%20that%20have%20uninstalled%20my%20application.%20I%20can't%20find%20any%20event%20that%20is%20triggered%20when%20you%20uninstall%20an%20personal%20scoped%20bot%20(app).%3CBR%20%2F%3EI'm%20using%20the%20javascrip%20SDK%20if%20that's%20relevant.%20I'm%20open%20for%20any%20suggestions%20or%20different%20approaches%20on%20how%20to%3A%3CBR%20%2F%3E-%20remove%20stored%20conversations%20for%20users%20uninstalled%20the%20app%3C%2FP%3E%3CP%3E-%20do%20a%20check%20if%20the%20user%20has%20the%20app%20before%20sending%20the%20message%3C%2FP%3E%3CP%3E-%20anything%20else%3F%3F%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EThank%20you%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-2111339%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3EBots%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3EConversations%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3EMessaging%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E
Occasional Visitor

Hi there.
I'm trying to build a personal bot which has to send proactive messages regularly. I made it work by storing the conversation (and bunch of other field from the activity) when the user installed the app, just like the examples here. Now it works great, but I realized that I keep messaging users that have uninstalled my application. I can't find any event that is triggered when you uninstall an personal scoped bot (app).
I'm using the javascrip SDK if that's relevant. I'm open for any suggestions or different approaches on how to:
- remove stored conversations for users uninstalled the app

- do a check if the user has the app before sending the message

- anything else??

 

Thank you 

0 Replies