Question

Handling Team Deletion During Bot uninstallation

  • 31 January 2024
  • 0 replies
  • 46 views

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?


0 replies

Be the first to reply!

Reply