v3

latestOpenAPI 3.1.02026-08-01264769.0 KB
Bot

Replace bot commands

Replaces the authenticated bot's complete command list. Commands appear to users in sort_order; send an empty array to clear the list.

post/bot/setMyCommands

Headers

authorizationstring required

Required bot token using the Bearer scheme.

Request body

Response

Successful response for an action with no return value.

oktrue required

Always true for a successful request.

resultobject required

Method-specific response payload.

Example response

{
  "ok": true,
  "result": {}
}