跳到正文
所有工具

telegram_search_messages

Telegram · macOS · Windows

效果: 读取. 状态: 受限可用.

“受限可用”表示工具可能取决于版本、平台、权限、账户或配置,并不表示它在所有安装中都已启用。

macOS

用途

按文本搜索你的 Telegram 消息,可跨所有聊天,或(使用来自 telegram_list_chats 的 chat_id)仅在某个聊天内搜索。搜索在 Telegram 服务器上进行,因此覆盖你的完整历史记录。需要已连接 Telegram(telegram_connect)。

必填输入

输入名称会严格保持工具要求的形式。下方可展开的架构中保留英文规范技术定义。

权限与确认

架构未声明明确的确认参数。这并不代表可以未经许可操作;请检查效果并取得授权。

英文规范技术架构 — macOS
{
  "properties": {
    "account": {
      "description": "Which linked Telegram account to use: its label or id from telegram_list_accounts. Leave it out to use the default account.",
      "type": "string"
    },
    "chat_id": {
      "description": "Optional chat id from telegram_list_chats to search only that chat.",
      "type": "string"
    },
    "limit": {
      "description": "Max messages (default 30, max 100).",
      "type": "integer"
    },
    "query": {
      "description": "Text to search for.",
      "type": "string"
    }
  },
  "required": [
    "query"
  ],
  "type": "object"
}

文档示例

telegram_search_messages 的文档示例。请勿执行此示例。所示参数属于虚构数据集;在实际调用前,请解析真实标识符并获得授权。

{
  "query": "launch checklist"
}

Windows

用途

按文本搜索你的 Telegram 消息,可跨所有聊天,或(使用来自 telegram_list_chats 的 chat_id)仅在某个聊天内搜索。搜索在 Telegram 服务器上进行,因此覆盖你的完整历史记录。需要已连接 Telegram(telegram_connect)。

必填输入

输入名称会严格保持工具要求的形式。下方可展开的架构中保留英文规范技术定义。

权限与确认

架构未声明明确的确认参数。这并不代表可以未经许可操作;请检查效果并取得授权。

英文规范技术架构 — Windows
{
  "properties": {
    "account": {
      "description": "Which linked Telegram account to use: its label or id from telegram_list_accounts. Leave it out to use the default account.",
      "type": "string"
    },
    "chat_id": {
      "description": "Optional chat id from telegram_list_chats to search only that chat.",
      "type": "string"
    },
    "limit": {
      "description": "Max messages (default 30, max 100).",
      "type": "integer"
    },
    "query": {
      "description": "Text to search for.",
      "type": "string"
    }
  },
  "required": [
    "query"
  ],
  "type": "object"
}

文档示例

telegram_search_messages 的文档示例。请勿执行此示例。所示参数属于虚构数据集;在实际调用前,请解析真实标识符并获得授权。

{
  "query": "launch checklist"
}