When a bot creates a group it becomes the sole admin, and DELETE .../groups then always fails with "User is last admin." The POST .../quit endpoint also fails the same way since it doesn't accept an admin param. The correct workaround is POST .../admins first (which actually works), then DELETE. Would be a nice improvement if DELETE handled this internally, or at minimum if the docs mentioned the pattern.
When a bot creates a group it becomes the sole admin, and DELETE .../groups then always fails with "User is last admin." The POST .../quit endpoint also fails the same way since it doesn't accept an admin param. The correct workaround is POST .../admins first (which actually works), then DELETE. Would be a nice improvement if DELETE handled this internally, or at minimum if the docs mentioned the pattern.