Commands: Overview of Methods

If you are developing integrations for Bitrix24 using AI tools (Codex, Claude Code, Cursor), connect to the MCP server so that the assistant can utilize the official REST documentation.

This section contains methods for registering, modifying, deleting, and responding to chat bot slash commands.

Quick navigation: all methods

How Slash Commands Work

Slash commands allow you to invoke bot functions in two ways:

  • by typing /command in the chat input field,
  • by triggering the command through a keyboard button.

In the second case, the command acts as a hidden action of the button and does not require manual text input. After the command is registered, the bot receives a call event and can respond via imbot.v2.Command.answer.

Overview of Methods

Scope: imbot

Who can execute the methods: owner of the registered bot

Method

Description

imbot.v2.Command.register

Registers a slash command

imbot.v2.Command.update

Updates a command

imbot.v2.Command.list

Returns a list of bot commands

imbot.v2.Command.unregister

Deletes a command

imbot.v2.Command.answer

Responds to a command call

Continue Your Exploration