---
title: "Changes to Replace bot commands"
method: POST
path: "/bot/setMyCommands"
---

# Changes to Replace bot commands

`POST /bot/setMyCommands`

> Every recorded change to this operation, newest first.

## Timeline

Changed in 3 of 12 revisions.

- **2026-10-29** `3eb50c9c5b92`: 1 info
- **2026-08-17** `b6346dfdb79c`: 5 info
- **2026-07-26** `d80f3b8927b8`: 26 breaking, 5 warning, 20 info

## Changes

- **2026-10-29** `3eb50c9c5b92`: 1 info
  - added the non-success response with the status `429`
- **2026-08-17** `b6346dfdb79c`: 5 info
  - added the optional property `parameters` to the response with the `400` status
  - added the optional property `parameters` to the response with the `401` status
  - added the optional property `parameters` to the response with the `403` status
  - added the optional property `parameters` to the response with the `404` status
  - added the optional property `parameters` to the response with the `500` status
- **2026-07-26** `d80f3b8927b8`: 26 breaking, 5 warning, 20 info
  - the `header` request parameter `authorization` became required
  - added `#/components/schemas/WireSafeInteger, subschema #2` to the `commands/items/sort_order` request property `allOf` list
  - added `subschema #1` to the `commands` request property `allOf` list
  - added `subschema #1, subschema #2, subschema #3` to the `commands/items/description` request property `allOf` list
  - added `subschema #1, subschema #2, subschema #3, subschema #4` to the `commands/items/command` request property `allOf` list
  - the `commands/items/sort_order` request property type changed from `number` to no type
  - removed the media type `multipart/form-data` for the response with the status `200`
  - removed the media type `multipart/form-data` for the response with the status `400`
  - removed the media type `multipart/form-data` for the response with the status `401`
  - removed the media type `multipart/form-data` for the response with the status `404`
  - removed the media type `multipart/form-data` for the response with the status `500`
  - removed the media type `text/plain` for the response with the status `200`
  - removed the media type `text/plain` for the response with the status `400`
  - removed the media type `text/plain` for the response with the status `401`
  - removed the media type `text/plain` for the response with the status `404`
  - removed the media type `text/plain` for the response with the status `500`
  - the `ok` response property const value `false` was removed for the status `400`
  - the `ok` response property const value `false` was removed for the status `401`
  - the `ok` response property const value `false` was removed for the status `404`
  - the `ok` response property const value `false` was removed for the status `500`
  - the `ok` response property const value `true` was removed for the status `200`
  - the `error_code` response's property type changed from `number` to no type for status `400`
  - the `error_code` response's property type changed from `number` to no type for status `401`
  - the `error_code` response's property type changed from `number` to no type for status `404`
  - the `error_code` response's property type changed from `number` to no type for status `500`
  - the `result` response's property type changed from `object` to no type for status `200`
  - added the new `false` enum value to the `ok` response property for the response status `400`
  - added the new `false` enum value to the `ok` response property for the response status `401`
  - added the new `false` enum value to the `ok` response property for the response status `404`
  - added the new `false` enum value to the `ok` response property for the response status `500`
  - added the new `true` enum value to the `ok` response property for the response status `200`
  - api operation id `postBotSetMyCommands` removed and replaced with `bot.headerSetMyCommands`
  - added the non-success response with the status `403`
  - added `#/components/schemas/BotEmptyResult, subschema #2` to the `result` response property `allOf` list for the response status `200`
  - added `#/components/schemas/HttpStatusCode, subschema #2` to the `error_code` response property `allOf` list for the response status `400`
  - added `#/components/schemas/HttpStatusCode, subschema #2` to the `error_code` response property `allOf` list for the response status `401`
  - added `#/components/schemas/HttpStatusCode, subschema #2` to the `error_code` response property `allOf` list for the response status `404`
  - added `#/components/schemas/HttpStatusCode, subschema #2` to the `error_code` response property `allOf` list for the response status `500`
  - added `subschema #1` to the `description` response property `allOf` list for the response status `400`
  - added `subschema #1` to the `description` response property `allOf` list for the response status `401`
  - …11 more

---

[Operation](https://skmtc.dev/inline/apis/inline-bot-http-api-docs/docs/bot/setMyCommands/post.md) - [API](https://skmtc.dev/inline/apis/inline-bot-http-api-docs.md) - [Page](https://skmtc.dev/inline/apis/inline-bot-http-api-docs/changes/bot/setMyCommands/post)
