v3

latestOpenAPI 3.1.02026-08-01264769.0 KB
Bot

Get the current bot

A simple method for testing bot authentication. Returns basic information about the bot account associated with the supplied token.

get/bot{token}/getMe

Path parameters

tokenstring required

Required bot token included in the URL path.

Headers

authorizationstring

Optional bot token using the Bearer scheme. When supplied, it takes precedence over the token in the URL.

Response

Successful getMe response.

oktrue required

Always true for a successful request.

Example response

{
  "ok": true,
  "result": {
    "user": {
      "id": 284901,
      "is_bot": true,
      "username": "deploy_bot",
      "first_name": "Deploy Bot"
    }
  }
}