Перейти к основному содержанию
GET
/
api
/
bots
/
validate
Validate a bot token
curl --request GET \
  --url http://localhost:8080/api/bots/validate \
  --header 'Authorization: Bearer <token>'
{
  "id": 123,
  "is_bot": true,
  "first_name": "<string>",
  "username": "<string>"
}

Авторизации

Authorization
string
header
обязательно

API key with bmx_ prefix. Obtain via /api/auth/api-keys.

Параметры запроса

token
string
обязательно

Telegram bot token to validate

Ответ

Token is valid

Telegram User object for the bot

id
integer
is_bot
boolean
Пример:

true

first_name
string
username
string