Forum Discussion
firstteam
May 12, 2021Copper Contributor
Is there any event for bot that I can use every time it is added?
OnConversationUpdateActivityAsync / OnTeamsMembersAddedAsync .. It looks like this event is only triggered very first time..which means, in order to invoke this event again, I need to register the bo...
firstteam
May 17, 2021Copper Contributor
Just FYI,..never mind...that event just started triggering again...I have no idea. Nothing changed. Not sure what made this work again...Who knows at some point it wouldn't trigger??..Anyway..just FYI.
Mamatha-MSFT
Microsoft
May 17, 2021Hi firstteam, Because of the cache issue it may not trigger the event some times. And make sure to uninstall all the previously installed apps with that Bot Id or App ID.
- firstteamMay 18, 2021Copper Contributor
Ok...I think I found out y. Well..that cache could be an issue as well..However, one thing I noticed that.... even if you uninstalled the bot, the chat bot still is there under Chat section. So...if you ever blocked it for whatever reason testing, then...when you resinstalled the app, the event won't be triggered because that bot was basically blocked. So...you have to make sure that the bot under Chat should be unblocked. Ok. here is a question. I don't see there is a delete option under Chat...or uninstall...there is hide, but I don't think that would work..I guess that is just UI thing... Is there any way to make a sort of automatic way that I can unblock the bot whenever I uninstalled the app? Obviously, I could create new bot(new guid), but that is not my option at this point.
Thanks,- Mamatha-MSFTMay 22, 2021
Microsoft
Hi firstteam, Currently there is no option to block a bot in specific chat.
- firstteamMay 17, 2021Copper ContributorYes, I always make sure to uninstall every app that associated with that bot id because that is easier. The thing is that as you probably know, uninstalling is way easier than deleting and creating new bot(with new guid) every time for testing..I'll keep eye on it though. Thanks,