Groups · Developer account
removeBotFromGroup
Remove a bot from a group
This method authenticates with your developer account. The easiest way to call it is the dashboard, which signs the request for you. Direct calls need a dashboard session cookie.
Removes the bot from the group and deletes its group thread (messages cascade). Past update rows stay as history; the bot receives nothing further.
Request
curl https://api.sprintelex.com/removeBotFromGroup \
# authenticated with your dashboard session \
-H "Content-Type: application/json" \
-d '{"bot_id":"<bot-id>","group_id":"<group-id>"}'Parameters
| Name | Type | Required | Rules |
|---|---|---|---|
| bot_id | string | Yes | - |
| group_id | string | Yes | - |
| env | string | No (default 'live') | must be 'live' or 'test' when provided |
Response
{ ok: true, result: true }Rate limit: none in code
Errors
| Status | Error | When |
|---|---|---|
| 400 | bot_id and group_id are required | either missing |
| 403 | you are not a member of this group | caller fails is_group_member check |