bx24_bots
Manage Bitrix24 chat bots: register bots, send messages, handle reactions, commands, files, and poll events via imbot.v2 methods.
Instructions
Bitrix24 chat bots v2 (чат-боты): bot registration, chats, messages, reactions, commands, files, events. Methods imbot.v2.* (REST 1.0 + 3.0). RU/EN: чат-бот, бот, зарегистрировать бота, команда, реакция / chat bot, register bot, command, reaction.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| code | No | Bot code (unique identifier) | |
| file | No | File to upload: NAME, CONTENT base64 | |
| botId | No | Chat bot code/ID | |
| order | No | Order object (e.g. { 'ID': 'DESC' }) | |
| start | No | Pagination offset (number of records to skip) | |
| action | Yes | Operation to perform: - "bot_register": Register a chat bot - "bot_update": Update bot properties - "bot_get": Get bot info - "bot_list": List bots of the app - "bot_unregister": Unregister/remove a bot (destructive) - "chat_add": Create a group chat (bot-hosted) - "chat_get": Get chat info - "chat_update": Update chat properties - "chat_leave": Bot leaves a chat (destructive) - "chat_setOwner": Change chat owner - "chat_user_add": Add a member to a chat - "chat_user_delete": Remove a member (destructive) - "chat_user_list": List chat members - "chat_manager_add": Add a chat manager - "chat_manager_delete": Remove a chat manager (destructive) - "message_send": Bot sends a message - "message_update": Update a bot message - "message_delete": Delete a bot message (destructive) - "message_read": Mark a message read - "message_get": Get a message by ID - "message_getContext": Get message context window - "reaction_add": Add a reaction to a message - "reaction_delete": Remove a reaction (destructive) - "command_register": Register a slash command - "command_update": Update a command - "command_list": List bot commands - "command_unregister": Unregister a command (destructive) - "command_answer": Respond to a command - "file_upload": Upload a file to a chat - "file_download": Get a file download link - "event_get": Poll for bot events | |
| chatId | No | Chat ID (e.g. chat123) | |
| fields | No | Bot/chat/message/command fields (per Bitrix24 docs for the method) | |
| filter | No | Filter object (e.g. { '>OPPORTUNITY': 10000, 'STAGE_ID': 'WON' }) | |
| select | No | Array of field names to return (projection) | |
| confirm | No | Set to true to confirm destructive actions when BX24_CONFIRM_DESTRUCTIVE is enabled. | |
| clientId | No | App client_id (for bot registration) | |
| commandId | No | Bot command ID | |
| messageId | No | Message ID | |
| reactionId | No | Message reaction ID |