I developed a bot, so during installation, I created some teams using the API (when the installation webhook is received, I call the team creation API using bot credentials). The admin of the team is the bot. However, when uninstallation happens, I need to delete these teams as well. How can I do that? The uninstallation hook is received after that has happened, so at that time, we can't trigger the delete team API using bot credentials, since the uninstallation already occurred. Is there any API to make someone else an admin, or any way we can trigger it before the uninstallation hook? What is the solution?
Handling Team Deletion During Bot uninstallation
Be the first to reply!
Reply
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.