Event Formats im.v2
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.
Description of all events that the user application receives via im.v2.Event.get.
The fields of the message, chat, and user objects are described in Objects and Fields of Chatbots 2.0.
Quick Navigation: ONIMV2MESSAGEADD | ONIMV2MESSAGEUPDATE | ONIMV2MESSAGEDELETE | ONIMV2REACTIONCHANGE | ONIMV2JOINCHAT
Differences from Method Responses
In these events, the chat and user objects are returned in a shortened format:
- The
chatobject does not contain theroleandmuteListfields — these depend on the specific user and cannot be the same for all recipients. - The
userobject does not contain thenetwork,botData, andavatarHrfields. - The online status fields (
idle,lastActivityDate,mobileLastDate,desktopLastDate) are always set tofalse.
This article describes the event format of the im.v2.Event.get method (polling/FETCH), so the auth field in the event data is not returned.
If using a webhook subscription for events, the webhook wrapper may contain an auth object with tokens.
ONIMV2MESSAGEADD
A new message in the chat that the subscribed user is part of.
|
Field |
Type |
Description |
|
message |
The sent message. The description of the object's fields — Message |
|
|
chat |
The chat where the message was sent. The description of the object's fields — Chat |
|
|
user |
The author of the message. The description of the object's fields — User |
|
|
language |
|
The language of the account (e.g., |
Example Data
{
"message": {
"id": 5012,
"chatId": 5,
"authorId": 1,
"date": "2025-01-15T10:30:00+02:00",
"text": "Hello everyone!",
"isSystem": false,
"uuid": "",
"forward": null,
"params": {},
"viewedByOthers": false
},
"chat": {
"id": 5,
"dialogId": "chat5",
"name": "Project Chat",
"type": "chat",
"messageType": "C",
"owner": 1,
"color": "#ab7761",
"avatar": "",
"description": "",
"extranet": false,
"containsCollaber": false,
"entityType": "",
"entityId": "",
"entityData1": "",
"entityData2": "",
"entityData3": "",
"entityLink": {},
"diskFolderId": 42,
"permissions": {},
"parentChatId": 0,
"parentMessageId": 0,
"isNew": false,
"textFieldEnabled": "Y",
"backgroundId": null
},
"user": {
"id": 1,
"active": true,
"name": "John Smith",
"firstName": "John",
"lastName": "Smith",
"workPosition": "Developer",
"color": "#df532d",
"avatar": "",
"gender": "M",
"birthday": "",
"extranet": false,
"bot": false,
"connector": false,
"externalAuthId": "default",
"status": "online",
"idle": false,
"lastActivityDate": false,
"mobileLastDate": false,
"desktopLastDate": false,
"absent": false,
"departments": [1],
"phones": false,
"website": "",
"email": "john@example.com",
"type": "employee"
},
"language": "en"
}
ONIMV2MESSAGEUPDATE
A message in the chat has been edited.
|
Field |
Type |
Description |
|
message |
The updated message. The description of the object's fields — Message |
|
|
chat |
The chat where the message was edited. The description of the object's fields — Chat |
|
|
user |
The author of the message. The description of the object's fields — User |
|
|
language |
|
The language of the account |
The data format is identical to ONIMV2MESSAGEADD. The message field contains the updated text.
ONIMV2MESSAGEDELETE
A message in the chat has been deleted.
|
Field |
Type |
Description |
|
messageId |
|
ID of the deleted message |
|
chat |
The chat where the message was deleted. The description of the object's fields — Chat |
|
|
user |
The author of the message. The description of the object's fields — User |
|
|
language |
|
The language of the account |
ONIMV2REACTIONCHANGE
A reaction to a message in the chat has been added or removed.
|
Field |
Type |
Description |
|
reaction |
|
Reaction code (e.g., |
|
action |
|
Action: |
|
message |
The message to which the reaction has changed. The description of the object's fields — Message |
|
|
chat |
The chat. The description of the object's fields — Chat |
|
|
user |
The user who changed the reaction. The description of the object's fields — User |
|
|
language |
|
The language of the account |
ONIMV2JOINCHAT
A new participant has been added to the chat.
|
Field |
Type |
Description |
|
dialogId |
|
ID of the dialog (e.g., |
|
chat |
The chat to which the participant has been added. The description of the object's fields — Chat |
|
|
user |
The added user. The description of the object's fields — User |
|
|
language |
|
The language of the account |
Continue Learning
- API imbot.v2 Change Log
- Get User Events im.v2.Event.get
- Subscribe to Events im.v2.Event.subscribe
- Objects and Fields of Chatbots 2.0