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

NameTypeRequiredRules
bot_idstringYes-
group_idstringYes-
envstringNo (default 'live')must be 'live' or 'test' when provided

Response

{ ok: true, result: true }

Rate limit: none in code

Errors

StatusErrorWhen
400bot_id and group_id are requiredeither missing
403you are not a member of this groupcaller fails is_group_member check