Documentation

Guides and help for BotStat services
BotStat API · BotMembers

Subscription check

Updated 01.12.2026 2 min read

Methods for @BotMembersRobot: checks go through your bot connected to the service. code - the bot code issued by @BotMembersRobot.

GET /checksub/{code}/{user_id} Whether the user has started your bot and has not blocked it. Requires paid access in @BotMembersRobot.
ParameterRequiredWhat it is
codeyesBot code from @BotMembersRobot
user_idyesUser's Telegram ID
bash
curl https://api.botstat.io/checksub/BOT_CODE/123456789

Response

json
{
  "ok": true
}

Errors

json
{
  "ok": false,
  "status_code": 403,
  "description": "Forbidden: bot was blocked by the user"
}
status_codedescriptionWhen
401Unauthorized in membersWrong code
401Access denied, need paymentAccess in @BotMembersRobot is not paid
401UnauthorizedThe bot token is no longer valid
403Forbidden: bot was blocked by the userThe user blocked the bot
400Bad Request: chat not foundThe user has not started the bot
504Timeout telegram answerTelegram did not respond
500error textAnother Telegram error
Errors come with HTTP 200Check ok and status_code in the response body. If Telegram does not respond within 2 seconds, the request is retried up to 5 times, then status_code 504 comes back.
Was this article helpful? Didn't find the answer? Contact support