v3

latestOpenAPI 3.1.02026-08-01264769.0 KB
Bot

Get bot commands

Returns the command list currently published by the authenticated bot.

get/bot{token}/getMyCommands

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 getMyCommands response.

oktrue required

Always true for a successful request.

Example response

{
  "ok": true,
  "result": {
    "commands": [
      {
        "command": "deploy",
        "description": "Deploy the latest build",
        "sort_order": 10
      },
      {
        "command": "status",
        "description": "Show the current deployment status",
        "sort_order": 20
      }
    ]
  }
}