search_messages
Search messages across all chats or within a specific chat. Filter by keywords, sender, and media type to pinpoint the messages you need.
Instructions
搜索消息。不传 chat 时进行全局搜索(搜索所有对话)。
Args: query: 关键词;配合 media_type 时可以留空字符串只按类型筛。 chat: 限定某个对话;留空为全局搜索。 limit: 条数上限,最多 200。 from_user: 限定发送者(仅在指定 chat 时有效)。 media_type: 只搜某种媒体类型的消息。
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| chat | No | ||
| limit | No | ||
| query | Yes | ||
| from_user | No | ||
| media_type | No | any |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |