Справочник API
Конечные точки REST API
cURL
curl --request GET \ --url http://localhost:8080/api/bots/validate \ --header 'Authorization: Bearer <token>'
{ "id": 123, "is_bot": true, "first_name": "<string>", "username": "<string>" }
Calls getMe on Telegram to verify the token is valid and returns bot info.
getMe
API key with bmx_ prefix. Obtain via /api/auth/api-keys.
bmx_
/api/auth/api-keys
Telegram bot token to validate
Token is valid
Telegram User object for the bot
true
Была ли эта страница полезной?