飞书 icon

飞书

飞书 API 集成,支持多种飞书功能

Actions112

消息 → 获取指定消息的内容

AI-generated

Summary

Retrieves the full content of a specific Feishu message using its message ID.

Inputs

  • message_id (required) — The ID of the message to retrieve. This can be obtained from the response of a send message operation or from message event listeners.
  • user_id_type — Specifies the format of the user ID returned in the message content. Defaults to 'open_id'.
  • options.batching.batchSize — The number of concurrent requests per batch. Set to 0 to default to 1.
  • options.batching.batchInterval — The time in milliseconds to wait between batches. Set to 0 to disable.
  • options.timeout — The maximum time in milliseconds to wait for the server to send the response headers. Set to 0 to disable.

Output shape

A single item containing the full message content (text, elements, and attachments).

The message content is returned in a flat JSON structure. If the message contains attachments, they are included in the response.

Examples

Example 1: Retrieving a message by its ID

Select '获取指定消息的内容', enter the specific message_id, and optionally set a user_id_type.

Example 2: Retrieving a message with custom concurrency settings

Set options.batching.batchSize to 10 and options.batching.batchInterval to 500 for faster processing.

Links

Discussion