Messages: Overview of Methods
If you are developing integrations for Bitrix24 using AI tools (Codex, Claude Code, Cursor), connect to the MCP server so the assistant can utilize the official REST documentation.
The messaging methods allow you to send and modify messages, work with dialogue history, context menus, and service actions in chats.
Quick navigation: all methods
Messaging Capabilities
- Formatting — which BB codes are supported in
MESSAGEand how to use them to highlight text, add links, and command inserts - Attachments — how to create structured content
ATTACH: blocks with text, links, files, and media elements - Keyboards — how to add
KEYBOARDwith interactive buttons and handle user actions in messages - Context Menu — how to configure
MENUwith additional actions and commands for a specific message
Getting Started
- Send a message using the im.message.add method.
- If necessary, modify or delete the message using the im.message.update and im.message.delete methods.
- Retrieve dialogue messages using the im.dialog.messages.get method.
- Find the desired message using the im.dialog.messages.search method.
- Manage the "read" status using the im.dialog.read, im.dialog.unread methods, and the "User is typing" indicator through im.dialog.writing.
Interaction with Other Objects
User. To send a message in a personal dialogue, specify the user ID in DIALOG_ID in the format XXX. You can obtain the user ID using the user.get and user.search methods.
Chat. To work with group chats, use DIALOG_ID in the format chatXXX or sgXXX. The CHAT_ID is used in message search methods. You can obtain the chat ID using the im.chat.get method.
Chatbot. To execute chatbot commands in the context of a message, use the im.message.command method and pass BOT_ID, COMMAND. The bot ID can be obtained using the imbot.bot.list method.
Overview of Methods
Scope:
imWho can execute the methods: depends on the method
|
Method |
Description |
|
Adds a message to the chat |
|
|
Modifies the sent message |
|
|
Deletes a message |
|
|
Changes the "Like" status of a message |
|
|
Creates an object based on a message |
|
|
Executes a chatbot command |
|
|
Retrieves a list of recent messages |
|
|
Searches for a message in the chat |
|
|
Sets the "read" status for messages |
|
|
Sets the "unread" status for messages |
|
|
Sends the "User is typing" indicator |