People · Developer account

unblockBot

Unblock a bot

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.

Unblocks the bot for the caller. Queues a my_chat_member update in each env (old 'kicked' -> new 'member').

Request

curl https://api.sprintelex.com/unblockBot \
  # authenticated with your dashboard session \
  -H "Content-Type: application/json" \
  -d '{"bot_id":"<bot-id>"}'

Parameters

NameTypeRequiredRules
bot_idstringYes-

Response

{ ok: true, result: { blocked: false } }

Rate limit: none in code

Errors

StatusErrorWhen
400bot_id is requiredmissing bot_id
404bot not foundno such bot or deleted
500could not unblock botDB delete failed