Bot

Get bot commands

Changed on

Returns the command list currently published by the authenticated bot.

get/bot{token}/getMyCommands

Request

  • Base URL
    https://api.inline.chat
  • Auth
    none required

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
      }
    ]
  }
}

Changes

    • info

      added the non-success response with the status

    • info

      added the optional property to the response with the status

    • info

      added the optional property to the response with the status

    • info

      added the optional property to the response with the status

    • info

      added the optional property to the response with the status

    • info

      added the optional property to the response with the status