b24_im_dialog_messages
Retrieve message history from a chat or dialog. Supports pagination to load older messages using last message ID.
Instructions
Read message history of a chat/dialog (im.dialog.messages.get).
Returns messages plus the referenced users/files. Page back with last_id.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | How many recent messages to return (default 20). | |
| last_id | No | Return messages older than this message id (for paging back through history). | |
| dialog_id | Yes | Dialog id: 'chat123' for a group chat, or a numeric user id (as string) for a 1:1 dialog. | |
| webhook_url | No | Override the default incoming webhook for this call (https://<portal>/rest/<user_id>/<token>/). If omitted, uses personal_webhook, then the X-B24-Webhook HTTP header, then the BITRIX_WEBHOOK_URL env default. | |
| personal_webhook | No | Act as a specific user (their personal incoming webhook). Takes precedence over webhook_url. Required to write to the portal under that user's permissions. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |