Telegram Bot API

Use this method to change the list of the bot's commands. See this manual for more details about bot commands. Returns True on success.

post/setMyCommands

Request

  • Base URL: https://api.telegram.org/bot<bot_token>
  • URL: https://api.telegram.org/bot<bot_token>/setMyCommands
  • Auth: none declared

Request body

language_codestring

A two-letter ISO 639-1 language code. If empty, commands will be applied to all users from the given scope, for whose language there are no dedicated commands.

Response

Telegram API response

oktrue required
resulttrue required

Changes

No recorded changes to this operation across all 3 revisions of this API.