Documentation

Guides and help for BotStat services
BotStat API · BotSafe

New check

Updated 01.12.2026 3 min read
POST /create/{token}/{key} Start a new bot check in @BotSafeRobot.
token
Bot token from @BotFather
key
Access key from your BotStat account

Request body (form-data)

file
File with user and/or group IDs: txt, csv, xls, xlsx, json. Up to 200 MB

Query parameters

ParameterRequiredWhat it is
notify_idno, 0ID of the user who gets the check progress and result in @BotSafeRobot
hideno, falsetrue - private check: only you see the results. false - after the check they appear on botstat.io
show_file_resultno, truefalse - do not return result files at the end of the check
is_fullno, trueDetailed check: besides the main data - photo, bio and gifts in profiles. Takes longer
speedno, 30Requests to Telegram per second, 1 to 90. The speed drops by itself on flood waits, reaching it is not guaranteed
use_mtprotono, falsetrue - check via MTProto: last activity time and accounts' data center. Adds extra load on the bot
Bots from @BotMembersRobotIf the token belongs to a bot connected to @BotMembersRobot, the check is always private, without files, at speed 5 and without MTProto - the passed parameters are ignored.

Request example

bash
curl -X POST "https://api.botstat.io/create/BOT_TOKEN/YOUR_KEY?notify_id=123456789&hide=true" \
  -F "file=@users.txt"

Response

json
{
  "ok": true,
  "result": {
    "id": "3f1c2b9e-5d1a-4b7e-9c2f-1a2b3c4d5e6f"
  }
}

id - the check ID. Progress and result go to the notify_id user in @BotSafeRobot.

Errors

An error comes with an HTTP code and a code in the response:

json
{
  "ok": false,
  "result": {
    "error_code": "INVALID_TOKEN",
    "message": "Invalid bot token."
  }
}
HTTPerror_codeWhen
403INVALID_KEYThe BotStat key is wrong or blocked
503KEY_CHECK_FAILEDCould not verify the key, try again later
400EMPTY_FILEThe file is empty
413FILE_TOO_LARGEThe file is larger than 200 MB
401INVALID_TOKENInvalid bot token
503BOT_VALIDATION_FAILEDCould not verify the token, try again later
429RATE_LIMITEDA new check for a bot can be created at most once a minute. The message says how many seconds to wait
409TASK_ALREADY_ACTIVEThe bot already has a check running
400INVALID_FILECould not read the file or the format is not supported
400NO_VALID_IDSNo Telegram IDs in the file
422INVALID_PARAMETERSInvalid request parameters
500TASK_CREATION_FAILEDCould not create the check
Was this article helpful? Didn't find the answer? Contact support